1201
General Mach Discussion / Re: how to stop macros from executing until 2nd cyclestart?
« on: May 02, 2015, 11:36:29 AM »
You seemed to be trying to run most of your machine from Macros ?? NOT a good idea. Also you are calling macros from inside macros REALLY not a good idea. To call another macro from inside another macro Use RunScript().
To have it wait you are going to have to use a Wait Loop. I would monitor the Cycle Start LED for the trigger to end the wait loop.
Message "Load Rack 3 and press CYCLESTART to continue"
Sleep 3000
DoOEMbutton(1003)
While Not GetLED(4)
Wend
Message" Cycle Start"
Code "M112"
(;-) TP
To have it wait you are going to have to use a Wait Loop. I would monitor the Cycle Start LED for the trigger to end the wait loop.
Message "Load Rack 3 and press CYCLESTART to continue"
Sleep 3000
DoOEMbutton(1003)
While Not GetLED(4)
Wend
Message" Cycle Start"
Code "M112"
(;-) TP