Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

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

    Scheduled Pinned Locked Moved
    General Discussion
    2
    5
    557
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jaydevdaveundefined
      jaydevdave
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        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.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • jaydevdaveundefined
          jaydevdave
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            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.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • jaydevdaveundefined
              jaydevdave
              last edited by

              Thank you

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA