Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Probe as external trigger

    Gcode meta commands
    2
    4
    56
    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.
    • svp_vub
      svp_vub last edited by

      Hi,

      I want to use a Z probe as an external trigger without defining it as an endstop (RRF3.3).

      The z-axis on my project has several probes (4) with different uses. One of them is a touch down switch that can be used to probe an object height, but if triggered otherwise should shut off the machine for safety reasons.

      I could make the trigger work correctly with this command combination:

      M558 K0 P8 C"^io7.in" F500 H5 ; Define the Z probe
      M574 Z1 S2 ; Define low Z endstop to Z probe
      M581 T2 Z1; Trigger T2 on endstop of Z1
      

      However this messes with the homing as it will now use the K0 probe to home Z. Is there a way to use a Z probe as an external trigger without having to use the endstop as middleman?

      I was thinking of maybe defining "^io7.in" as an input pin with M950 J1 C"^io7.in", but I get "Error: M950: Pin 'io7.in' is not free", as it is already defined as a Z probe as it should be.

      1 Reply Last reply Reply Quote 0
      • Phaedrux
        Phaedrux Moderator last edited by

        If you want to use the same input as homing and a trigger, you just need to redefine it before you use it. So in the beginning of your homing file you would need to free up the pin again, and remap it as the probe, then at the end of the homing macro, free it again and remap it as the trigger.

        Z-Bot CoreXY Build | Thingiverse Profile

        svp_vub 1 Reply Last reply Reply Quote 0
        • svp_vub
          svp_vub @Phaedrux last edited by svp_vub

          @Phaedrux thanks!
          I fixed it by turning off the trigger, and re-configuring the endstop before and after the homing sequences.

          I guess there is no way to immediately use probe K3 for example as external trigger?

          1 Reply Last reply Reply Quote 0
          • Phaedrux
            Phaedrux Moderator last edited by

            It doesn't really make sense to use the probe configuration mechanism as a trigger. It's not the probe you want to use, it's the pin, and that's already reconfigurable.

            Z-Bot CoreXY Build | Thingiverse Profile

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