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

    Analog threshold for M581 trigger

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    3
    285
    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.
    • rjhundefined
      rjh
      last edited by

      This is a follow-up from https://forum.duet3d.com/topic/11535/firmware-proposal-using-z-probe-as-external-trigger

      I'm looking to make it possible for an analog Z Probe to act as an emergency stop when an object comes too close. I imagine that that'd happen via M581, with the Z Probe acting as a trigger when it exceeds a threshold value. From the previous thread I learnt that RRF V3.0 we can select the Z Probe pin in M581, so the one remaining obstacle is how to specify that analog threshold.

      For example, we could add an A parameter to specify the analog threshold?

      M581 P"zprobe.in" A980 T0 C0   ; Emergency stop any time the rangefinder detects an object too close (value >980).
      

      How does that sound?

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

        Yes that sounds reasonable. I'll add it to the work list for RRF3.

        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
        • CR3Dundefined
          CR3D
          last edited by

          Really interessting!! 🙂

          Christian from CR-3D
          Homepage:
          www.cr-3d.de

          Facebook:
          https://www.facebook.com/cr3d.official

          Our Discord Server
          https://discord.gg/SxRaPNuRdA

          Thingiverse Profile:
          https://www.thingiverse.com/cr-3d_official/about

          1 Reply Last reply Reply Quote 0
          • soccerpaulundefined soccerpaul referenced this topic
          • fcwiltundefined fcwilt referenced this topic
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA