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

    Z end stop as Z probe for leveling bed

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    11
    2.7k
    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.
    • codfish124undefined
      codfish124
      last edited by

      I an having a hard time getting the endstop to work for a probe. I have got it working with home Z. I am using a switch set up on a floating nozzle.

      I would like to use this to also probe the bed for leveling but unsure how… when i run G23 now it ask for manuel leveling

      here is my bed G
      ; bed.g
      ; called to perform automatic bed compensation via G32
      ;
      ; generated by RepRapFirmware Configuration Tool on Fri Mar 16 2018 14:10:14 GMT-0600 (Mountain Daylight Time)
      M561 ; clear any bed transform
      G28
      G91
      G1 Z6 F200
      M557 X10:200 Y10:140 S100
      G90
      G29

      and my endstop part of config

      ; Endstops
      M574 Z1 S1 ; Set active high endstops
      M574 X1 Y1 S3 ; Set endstops controlled by motor load detection

      ; Z-Probe
      M558 P0 H5 F120 T6000 ; Set Z probe type to unmodulated and the dive height + speeds
      G31 P500 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
      M557 X15:195 Y15:135 S20 ; Define mesh grid

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

        M558 P0 tells the firmware that you have no Z probe.

        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
        • codfish124undefined
          codfish124
          last edited by

          so use

          M558 P1

          but what tells it to use the Zmin endstop

          1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman
            last edited by

            @codfish124:

            so use

            M558 P1

            but what tells it to use the Zmin endstop

            M558 P1 X0 Y0 Z1

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • codfish124undefined
              codfish124
              last edited by

              that's not working

              1 Reply Last reply Reply Quote 0
              • codfish124undefined
                codfish124
                last edited by

                it doesn't seem to every use the Z Min endstop

                1 Reply Last reply Reply Quote 0
                • codfish124undefined
                  codfish124
                  last edited by

                  I got it thanks i had to use the E0 switch plug

                  thanks for the help

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

                    It's possible to use the Z endstop input too in firmware 1.20 and later. See M558 in the GCode wiki page.

                    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
                    • codfish124undefined
                      codfish124
                      last edited by

                      @dc42:

                      It's possible to use the Z endstop input too in firmware 1.20 and later. See M558 in the GCode wiki page.

                      well that wasn't on the one i was looking at only went to P5 thanks that would have been helpfull

                      1 Reply Last reply Reply Quote 0
                      • Nylkosundefined
                        Nylkos
                        last edited by

                        I have a duet 0.8.5 and I am trying to use my printer for PCB mill and was hoping to use the cutter and the PCB copper side as a endstop using the Z-Axis pins.

                        How would I set up the Z endstop without using the E0?

                        Microswitch

                        Connect it between the STP and GND pins of the E0 connector and select mode 4. If it is a normally-closed microswitch, then with version 1.15 or earlier firmware use M574 E0 S1 to select active high trigger level. For normally-open contacts (not recommended), send M574 E0 S0 instead. With 1.16 or later firmware, include parameter I1 in the M558 command if you are using a normally-open switch.

                        A Z probe may be a switch, an IR proximity sensor, or some other device. This selects which to use:

                        P0 indicates that no Z probe is present.
                        P1 specifies an unmodulated or smart IR probe, or any other probe type that emulates one (probe output is an analog signal that rises with decreasing nozzle height above the bed). If there is a control signal to the probe, it is driven high when the probe type is P1.
                        P2 specifies a simple modulated IR probe, where the modulation is commanded directly by the main board firmware using the control signal to the probe.
                        P3 is similar to P1 but drives the control signal to the probe low. This may be used to switch between different Z probes.
                        P4 selects a switch for bed probing (on the Duet, this must be connected to the E0 endstop pins).
                        P5 (from RepRapFirmware 1.14) selects a switch by default (normally closed) for bed probing between the In and Gnd pins of the Z-probe connector (Duet 0.8.5 and Duet WiFi).
                        P6 is as P4 but the switch is connected to an alternative connector (on the Duet series, the E1 endstop connector).
                        P7 (from RepRapFirmware 1.20) selects a switch (by default normally closed) connected to the Z endstop input
                        P8 (from RepRapFirmware 1.20) is as P5 but is unfiltered, for faster response time
                        P9 (from RepRapFirmware 1.21RC2) is as P5 but for a BLTouch probe that needs to be retracted and redeployed between probe points

                        In RepRapFirmware versions 1.20beta4 and earlier, the X, Y and Z parameters specify whether each axis uses the Z probe as a substitute homing switch or not. If the parameter is nonzero, the Z probe is used for homing that axis. If the parameter is zero, the endstop switch for that axis is used for homing instead. In firmware 1.20beta6 and later, use the S parameter in the M574 command instead to indicate whether you are using a homing switch or a Z probe for homing X and Y.

                        Related commands: G29, G31, G32, M401, M402.

                        I tested, the contact, it triggers the light but doesn't stop in home all or home Z

                        M558 P* F120 X0 Y0 Z1 T6000 S1
                        G31 P500 X0 Y0 Z0
                        I tested M558 with: P1, P2, P5

                        Do I have to make any modification in homeall.g or homez.g?

                        Thank you

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

                          You can connect the switch to the Z endstop pins or the E1 endstop pins instead (whichever pins are free) and use P6 or P7 instead of P4 in the M558 command.

                          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
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA