You might want to try the BLOCK DELETE function. If the button is active then MACH will skip over Blocks of code that are preceeded with a SLASH. If the button is not active it runs the blocks. You could then program in a stop and it would only run if the BD switch is off.
(;-) TP