Page 2 of 2

Re: Macro on AUX13 or AUX14

Posted: Sat Jan 12, 2019 8:35 pm
by tblough
Marc,

I ended up with almost what you suggested. I use SV_M94_M95_nn to turn the LED off from within the macro. It doesn't appear that SV_JOB_IN_PROGRESS, or SV_PROGRAM_RUNNING get set when executing system macros as the light stays on for only a split second when using either one of those bits. It would be great is there was some way go get the last message sent, then I could just check for "306 Job Finished" as that does get posted when the job finishes.

I started out turning the light via the PLC, and turning it off with a M95 from the macro, but the system macros only run when the control is at the home screen. I keep hitting Aux13 right after I turn the axis back on which is from the setup screen so the PLC would turn the light on, but the macro does not run to turn it off. That's when I switched to doing both from within the macro.

I had the SV_M94_M95_nn hard coded but I liked your variable definition method as it is much clearer so I added that. Thanks - I earn something new from you every day.