Hi, I'm new to this forum, but I have been a Mach user for 2 years, just that I didn't really play with macros. I'm setting up a oxy control, which control valves of oxy. and acet., to suit the traditional cutting style. As you can see, there are ignition delay, preheat delay and pierce delay, and 3 of them are controlled by 3 different outputs. The problem i'm facing is everytime i trigger this macro script, all the outputs triggers at the same time. I cant get it to delay before triggering another output. Can someone kindly help to neaten up the script? Thanks!
rem M3 Macro
Dim IgnitionDelay, PreheatDelay, PierceDelay
IgnitionDelay = getUserDRO (1001)
PreheatDelay = getUserDRO (1002)
PierceDelay = getUserDRO (1003)
ActivateSignal(Output1)
code "G4 P" & (IgnitionDelay)
ActivateSignal(Output2)
code "G4 P" & (PreheatDelay)
ActivateSignal(Output3)
code "G4 P" & (PierceDelay)
End