1
General Mach Discussion / program pause until spindle starts
« on: February 23, 2012, 09:20:22 PM »
How do I get Mach 3 to not proceed with running gcode until spindle is running? I have input 2 setup and it works when I turn spindle on it lights up, spindle off it goes out.
Tried M3 macro, can't get that to do it. Tried creating a file M3userpostscript.m1s with the following and that doesn't work either....
Message “Spindle Start Requested”
SystemWaitFor(Input2)
While IsMoving ()
sleep (10)
Wend
Message “Spindle Start Delay”
Code "G4 P2"
While IsMoving
sleep (10)
Wend
Message “”
Call SetUserLED(1010,1)
Tried M3 macro, can't get that to do it. Tried creating a file M3userpostscript.m1s with the following and that doesn't work either....
Message “Spindle Start Requested”
SystemWaitFor(Input2)
While IsMoving ()
sleep (10)
Wend
Message “Spindle Start Delay”
Code "G4 P2"
While IsMoving
sleep (10)
Wend
Message “”
Call SetUserLED(1010,1)