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

    Multiple motion system call macro in the second motion system

    Scheduled Pinned Locked Moved
    General Discussion
    3
    5
    99
    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.
    • pouryatorabiundefined
      pouryatorabi
      last edited by pouryatorabi

      Hi,

      I want to do something like this:

      M596 P0
      G1 X50 F100
      M596 P1
      G1 W10 F200
      G1 W-10 F200
      M98 P"/macros/Macro1"
      

      What I expected was that while the system was moving to X50, I could move W back and forth by 10mm and then run "Macro1." But the system waits for the X movement to finish before running Macro1. How can I tell the system not to wait for the X movement?
      Also, is it possible to run two macros at the same time?

      dwuk3dundefined 1 Reply Last reply Reply Quote 0
      • dwuk3dundefined
        dwuk3d @pouryatorabi
        last edited by

        @pouryatorabi For M596 the documentation says use P rather than S.

        Also to make things work in parallel if you have a lot of commands I have found sometimes M606 S1 is needed.

        pouryatorabiundefined 1 Reply Last reply Reply Quote 0
        • pouryatorabiundefined
          pouryatorabi @dwuk3d
          last edited by

          @dwuk3d Thanks for the reply. You’re right, it should be 'P', that was a typo, and I’ve corrected it. I’ve tried using 'M606 S1' before, but everything stops when it reaches that command. Also, as far as I know, I have to run it as a job, I can’t call it from a macro.

          dwuk3dundefined 1 Reply Last reply Reply Quote 0
          • dwuk3dundefined
            dwuk3d @pouryatorabi
            last edited by

            @pouryatorabi thought so - do you still get the problem?

            Macro's work ok for me in multiple motion systems - especially when you run them as job,

            What is in the macro?

            I found that without the M606 it will only run a few commands in parallel.

            I usually do T0 or T1 after most of my M596's

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

              @dwuk3d when you are running a job, you should be able to run many commands in parallel. When not running as a job, the number you can run in parallel is limited by the lengths of the motion queues. Motion system 2 has a very short queue after reset, so if you want to use the second motion system then you should increase it using the M595 command.

              @pouryatorabi did you increase the length of motion system 1 queue using M595?

              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