Status information
about the end of an
NC program
Canceling an NC
Program
6 – 246
Module 9320 Status of the NC program end
Module 9320 can ascertain status information on the termination of the NC
program.
Call:
CM
9320
PL
B/W/D
<Cause of NC program end>
1: Emergency stop
2: Positioning error
3: Programmed stop (stop, M00)
4: Normal end
5: Geometry error
6: END PGM, M02
7: Internal stop
8: RS-232-C transmission error
PL
B/W/D
<Error class>
Bit 0: Reserved
Bit 1: Control loop
Bit 2: Probing
Bit 3: Limit switch
Bit 4: Error from FN14
Bit 5: Tool management
Bit 6: Programming error
Bit 7: Program selection/preparation
Bit 8: Pallet administration
Bit 9: Emergency stop
PL
B/W/D
<Help number>
–1: No help number
PL
B/W/D
<Block number in the NC program>
PL
B/W/D
<Additional information>
In the "tool management" error class:
Tool number
An NC macro can be called automatically if an NC program was cancelled by
an error message or an external or internal stop. You can use it to exchange
information between the NC and the PLC. This NC macro may not contain any
positioning commands, or the error message Program data erroneous will
appear.
7 7 7 7
In NCMACRO.SYS enter the name (and path) of the NC macro after the
code word RUNCANCEL =.
HEIDENHAIN Technical Manual TNC 426, TNC 430