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.
Macro on AUX13 or AUX14 (Answered)
Moderator: cnckeith
-
- Community Expert
- Posts: 3542
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: Macro on AUX13 or AUX14
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)