yup, samu's right... and if you need to call a macro from a macro you can use g65 p90xx if necessary
i like your clever thinking finding a solution for this with the timer, samu... but like you pointed out you only know after the M1
the two methods i've tried (but don't like the extra step) is to define my own M1 as follows, which allows me to use #101 macro variable as a secondary opt-stop with "status" dprnts:
Code:
O9006(OPT STOP...)
IF[#101EQ1]GOTO1111
M1
M99
N1111
POPEN
DPRNT[//HOLD]
PCLOS
M0
POPEN
DPRNT[//START]
PCLOS
M99
also, depending on your use of block skip, you could use that as well, with or without GOTOs, like:
Code:
O9006(OPT STOP...)
/M1
/M99
POPEN
DPRNT[//HOLD*M1]
PCLOS
M1
POPEN
DPRNT[//START*M1]
PCLOS
M99
just some preliminary work arounds... but none as easy as the "opt stop" button alone
- gwarble