You need two macros and you need to name these macros m10.m1s and m11.m1s and place them in the macro folder of the profile you use, for example if its Mach3Mill profile you use then they need placed in C:\Mach3\Macros\Mach3Mill
Ideally you should use macros named 100 or over for User macros, so if you can use m110.m1s and m111.m1s.
So to call the macro from code it would be m110 or m111.
What you need in the macros would be, for M110
ActivateSignal(OutPut1)
and for M111
DeActivateSignal(OutPut1)
Hood
Thanks, Hood. I'll look into that - I have not done Macros in Mach3 before, but it is time I learn. (I have 34+ years of computer software design and development - maybe I should have thought of that first.)
A little while ago, I posted the following info, which I will try first, as it is a built in method - rather than me doing it.
"Actually, I believe I have found it, after 5.75 hours of searching. I got the info here:
http://www.machsupport.com/forum/index.php/topic,6629.msg43375.html#msg43375Appearantly, I don't need to do much "special" in Mach3. I already have my "spindle" (laser) relay set to output #1. When you use the M10 or M11, you simply add on a "Px" (x = output number you are using). So, in my case, a M10P1 will turn on the laser and M11P1 will turn it off. Delay is reported to be only 1.5ms instead of 500ms.
I have not tried it yet. (My eyes are tired and brain dead from searching the forum and net for this answer.) Hope to try it tomorrow and will report back."