Z0 at top and Limit switch is at bottom of the machine, how to configu



  • Hi,

    I want to configure.
    Z0 at top (touching the nozzle) and my limit switch is at bottom of the machine.

    So, when the limit switch triggers, z value should set to 500 instead of 0.


  • administrators

    1. In your M574 command, use Z2 to indicate that it is a Z Max endstop instead of Z1 which means a Z Min endstop.

    and

    2. In your M208 S0 command (or the M208 command without S1 in it), use Z500 to indicate that the X max position is 500.



  • Hi,

    M574 X1 Y1 Z2 S0 ; Set active low endstops
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X500 Y550 Z500 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 Z2 S0 ; Set active low endstops
    M558 P0 X0 Y0 Z0 H5 F120 T1800 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    G31 P600 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
    M557 X15:485 Y15:485 S20 ; Define mesh grid

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes backwards
    M569 P3 S0 ; Drive 3 goes backwards
    M584 X0 Y2 Z1 E3 ; Apply custom drive mapping

    ; Tools
    M563 P0 D0 H1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

    When i press home z Bed Goes down, and Z value will set to 0.
    But i want Z500 instead of Z0


  • administrators

    If you have any G92 Z commands after the Z homing move in homez.g and/or homeall.g, remove them. If that isn't the problem, please share your homeall.g and homez.g files.



  • Thank you


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.