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

    M42 command delay

    Scheduled Pinned Locked Moved
    General Discussion
    3
    16
    640
    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.
    • Edumaundefined
      Eduma @dc42
      last edited by

      @dc42

      I did not know that existed. I will look into M670 further and give that a shot

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

        @dc42

        Is there any more details on how to properly utilize the P parameter in the G1 command. I didn't find much detail in the wiki.

        If I send M670 P24:P25 I am able to activate output 24 and 25 by adding a P1 or P2 to the G1 commands. Is there a way to activate multiple outputs during the move. I tried adding P1:2 without any luck.

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

          @Eduma said in M42 command delay:

          @dc42

          Is there any more details on how to properly utilize the P parameter in the G1 command. I didn't find much detail in the wiki.

          If I send M670 P24:P25 I am able to activate output 24 and 25 by adding a P1 or P2 to the G1 commands. Is there a way to activate multiple outputs during the move. I tried adding P1:2 without any luck.

          I presume you used M670 P24:25.

          P3 will activate both. The P parameter is a bit map of output numbers (whose mapping is defined by M670) that you want to activate.

          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

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

            @dc42

            that seems to do the trick. I'll have to some more testing.

            Thank you for the prompt response.

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

              In RRF 3.01RC3, which I hope to release tomorrow, I've also changed the scheduler to avoid the small delay between M42 and the next G1 command starting that you might get in some situations.

              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

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

                @dc42

                Utilizing the M670 command greatly improved response time. What I've seen is that once a P command is issued in a G1 move, the output will continue to trigger in any subsequent G1 or G0 moves until a P0 is issued. Is this intended behavior?

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

                  @Eduma said in M42 command delay:

                  @dc42

                  Utilizing the M670 command greatly improved response time. What I've seen is that once a P command is issued in a G1 move, the output will continue to trigger in any subsequent G1 or G0 moves until a P0 is issued. Is this intended behavior?

                  Yes. We added that functionality for an OEM, and that is what they asked for.

                  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

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

                    @dc42

                    Fair enough. I suppose I can modify the gcode generation to always include a P0 with G0 moves and ensure I'm using them for travel moves.

                    One more question for you. Is there any P command to turn all of the associated outputs on regardless of number; something like a P99 for example? We're actually looking at using this board as an oem in some dispensing equipment and I'm looking at a couple different tools configurations that will have different output configurations. I initially went down the m42 road for flexibility. I think I can associate the outputs in the tool change command but the gcode generation could get tricky if I need to assign different p values based on the number of outputs.

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

                      @Eduma said in M42 command delay:

                      @dc42

                      Fair enough. I suppose I can modify the gcode generation to always include a P0 with G0 moves and ensure I'm using them for travel moves.

                      One more question for you. Is there any P command to turn all of the associated outputs on regardless of number; something like a P99 for example? We're actually looking at using this board as an oem in some dispensing equipment and I'm looking at a couple different tools configurations that will have different output configurations. I initially went down the m42 road for flexibility. I think I can associate the outputs in the tool change command but the gcode generation could get tricky if I need to assign different p values based on the number of outputs.

                      You could try P65535, that might work. Or P255 if you won't have more than 8 outputs. I can't remember whether trying to turn on an unconfigured output gives rise to a message.

                      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

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

                        @dc42

                        P255 should do the trick

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