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

    Conditional trigger with second endstop?

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    2
    154
    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.
    • Ti21undefined
      Ti21
      last edited by Phaedrux

      Hi,
      first of all I'm not sure if my problem is in the right topic, but i think it would be tuning and tweaking or maybe metagcode but I don't have the experience with meta gcode's to judge that. And my english is not the best so hopefully you guys can help me anyways.

      As for my problem, I want to move an axis (let's call it A) linearly.
      The axis has also a Min. Endstop(lets call it !AStop)
      thats totaly clear.But I would like to move the axis forward to a defined point until a second sensor triggers(!BStop). and the distance is not always the same.

      It could work if i put both endstops in the config together-> M574 A1 S1 P"Astop+Bstop"
      But i just need to rest at the second endstop and after some seconds i drive over the endstop .
      an if i home the axis now to drive the hole way back it will stop at the 2. Enstop cause its clearly an endstop. but it should drive the holeway back an to the min Endstop (AStop)

      Maybe this is easily to understand->
      Is it possible to say G1 H3 A500 (but stop when Endstop "Bstop" pulled?) cause in this operation i can home A normaly and can ignore the Bstop endstop while i cross the enstop while im homing.

      This Movement is not for a printer: its a grabber who is driving on an axis. Home position grab it-> drive till sensor 2 triggerd ->Stop->after some second drive to the end of the axis->loose the grabber->drive the whole way back.

      or maybe something like this would be awesom but i didnt found anything about it.
      g1 A500
      if sensor.Bstop.triggered
      stop the movement
      something like that as a macro would be perfekt but i didnt found any comment to stop the axi right away when its triggered every time the the axis moves the hole 500 without stopping the movement.
      i hope you can understand me what i try to explain you.
      maybe someone can help me

      dc42undefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined Phaedrux moved this topic from Tuning and tweaking
      • dc42undefined
        dc42 administrators @Ti21
        last edited by

        @ti21 I think the M585 command may be what you are looking for. https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m585-probe-tool

        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