I have a M-Code (M152) aliased to a sub program (O9002) that actuates a valve driven by an M-code relay (M52).
Calling M152 in a program will run the following code:
O9002 (HI PRESSURE ON)
M52 (SOLENOID ON)
G04 P1.5 (DWELL)
M62 (SOLENOID OFF)
M99 (RETURN)
This has been running on 100s of different programs 50-100 cycles a day for over a year, and somehow this morning it throws an alarm?
I single block through the program I find it is alarming out on the M62 line.
I deleted and retyped the code in the sub program but that didn't fix it in memory mode.
I deleted the M152 code and replaced it with the subprogram code in the main program and that also didn't fix it.
However it will run without issue if I type the code into MDI...
Any ideas what kind of gremlin this is and how to fix it?
Calling M152 in a program will run the following code:
O9002 (HI PRESSURE ON)
M52 (SOLENOID ON)
G04 P1.5 (DWELL)
M62 (SOLENOID OFF)
M99 (RETURN)
This has been running on 100s of different programs 50-100 cycles a day for over a year, and somehow this morning it throws an alarm?
I single block through the program I find it is alarming out on the M62 line.
I deleted and retyped the code in the sub program but that didn't fix it in memory mode.
I deleted the M152 code and replaced it with the subprogram code in the main program and that also didn't fix it.
However it will run without issue if I type the code into MDI...
Any ideas what kind of gremlin this is and how to fix it?