Touch Plate with G38. codes

New Home Forum Software Development Touch Plate with G38. codes

This topic contains 11 replies, has 2 voices, and was last updated by Profile photo of P3DCNC P3DCNC 1 month, 1 week ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #29782
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Has anyone tried implementing this?

    I’m using Home’Z'(G28 I think) with a touch plate but I want to touch off the sides of a corner touch plate as well to set all 3 axis of my workpiece origin.

    What do I need to do ?

    #29791
    Profile photo of Martin DB
    Martin DB
    Participant

    It’s on my todo list…. You have to go with RC8 Marlin…. But currently there are some problems with this version….

    #29813
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Do you have a working RC8 that I could try out ?

    Do you know what pins you have to use to make it work ? I know ESTLCAM uses pins that the LCD is connected to (last I read) so I don’t think that will work for me. I also read the configuration.h where it tells you pretty much what to do in regards to assigning pins,etc.

    I’m in the process of redoing some cuts whose mortices are slightly too small, so I need to position the origin precisely, which is why this is top priority for me. So I’m trying to get the info I need and will try and get it working. Any help I can get before I dive in is appreciated.

    #29818
    Profile photo of Martin DB
    Martin DB
    Participant

    No, I don’t have tested it yet. My RC8 is the original one but with z feedrate max to 7mm/seg.

    #29829
    Profile photo of P3DCNC
    P3DCNC
    Participant

    I’ve transposed the MPCNC settings to the RCBugFix(RC8) firmware. Some settings are specific to my machine (x and y are reversed, and end stops) but the rest are stock MPCNC. Just search for p3dCnC to see what was changed. The stock settings are left in there as well so you can see what they were originally.

    I’ll start looking into the 38.2 gcodes and touch plate stuff as soon as I have some time.

    #29869
    Profile photo of P3DCNC
    P3DCNC
    Participant

    So I’m able to upload the firmware but… When I connect with Repetier, it connects, finished with “1 command waiting” and never gets past that. Any ideas ?

    I also don’t use my LCD knob much but was going to test that out, however, it’s way too sensitive to select anything properly. Any idea how to make 1 click of a turn of the button be 1 row of the menu ?

    #29875
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Here’s how to fix the knob issue(Configuration.h):

    // This option overrides the default number of encoder pulses needed to
    // produce one step. Should be increased for high-resolution encoders.
    //
    //#define ENCODER_PULSES_PER_STEP 1
    #define ENCODER_PULSES_PER_STEP 4 // p3dCnC

    //
    // Use this option to override the number of step signals required to
    // move between next/prev menu items.
    //
    //#define ENCODER_STEPS_PER_MENU_ITEM 5
    #define ENCODER_STEPS_PER_MENU_ITEM 1 // p3dCnC

    #29881
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Reversed the direction of the knob as well:

    // This option reverses the encoder direction for navigating LCD menus.
    //
    // If CLOCKWISE normally moves DOWN this makes it go UP.
    // If CLOCKWISE normally moves UP this makes it go DOWN.
    //
    //#define REVERSE_MENU_DIRECTION
    #define REVERSE_MENU_DIRECTION // p3dCnC

    #29888
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Hangs on this M111 command..

    <Update> Never mind, typo in the Baudrate. Connecting well now.

    • This reply was modified 1 month, 1 week ago by Profile photo of P3DCNC P3DCNC.
    • This reply was modified 1 month, 1 week ago by Profile photo of P3DCNC P3DCNC.
    #29911
    Profile photo of P3DCNC
    P3DCNC
    Participant

    Almost have it working :)!

    Here are some posts that describe how to do it:
    https://github.com/MarlinFirmware/Marlin/issues/5743
    https://github.com/MarlinFirmware/Marlin/pull/5678

    Note that it looks like it only just recently (within weeks) has been fixed. I’ll post as soon as I have it working reliably. Was able to probe Z and X last night with G38.2 but it stopped working for some reason. Need to figure out why.

    #29912
    Profile photo of Martin DB
    Martin DB
    Participant

    Good job! Please share your findings when ready! Also a youtube video should be great.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.