Duet3D Logo

    Duet3D

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

    additional functions with triggers

    Firmware wishlist
    2
    3
    114
    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.
    • cosmowave
      cosmowave last edited by

      Hello, i'd like to ask if it is possible to add some functions to the triggers.

      • Is it possible to make a debounce function for the trigger input "M950 J"?
      • Is it possible to temporary enable/disable the trigger?

      Once again: Thanks for your work

      Mankati FSXT+, DeltaTowerV2, CBot3D

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

        @cosmowave said in additional functions with triggers:

        Hello, i'd like to ask if it is possible to add some functions to the triggers.

        • Is it possible to make a debounce function for the trigger input "M950 J"?

        There is no built-in function to do this yet, however you can use conditional GCode to debounce. For example, if the trigger activates on an inactive-to-active transition of GpIn port 0 then you could use this in the trigger file:

        G4 P10  ; delay 10ms
        if sensors.gpIn[0].value = 1 ; check that the input is still high
          <your code here>
        
        • Is it possible to temporary enable/disable the trigger?

        Yes, use M581 with the correct T parameter and R-1.

        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

        cosmowave 1 Reply Last reply Reply Quote 0
        • cosmowave
          cosmowave @dc42 last edited by

          @dc42 perfect.
          Thanks for the explanation!

          Mankati FSXT+, DeltaTowerV2, CBot3D

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