Multiple motion system call macro in the second motion system
-
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? -
@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.
-
@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.
-
@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
-
@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?