7 output of q parameters and messages, Output of error messages, Output through an external data interface – HEIDENHAIN TNC 406 User Manual
Page 218

HEIDENHAIN TNC 406, TNC 416
197
1
0
.7 Output of Q P
a
ra
met
e
rs and Messag
e
s
10.7 Output of Q Parameters and
Messages
Output of error messages
With the function FN14: ERROR you can call messages that were pre-
programmed by the machine tool builder.
When the TNC encounters a block with FN 14 during program run, it
interrupts the run and displays an error message. The program must
then be restarted.
Input:
Example: FN 14: ERROR = 254
The TNC then displays the text stored under error number 254.
Example NC block
Output through an external data interface
The function FN15: PRINT transfers Q parameter values and error
messages through the data interface, for example to a printer or to the
file %FN15RUN.A.
FN 15: PRINT with numerical values from 0 to 499 are used to
access PLC dialogs 0 to 499.
Example: FN 15: PRINT 20
Transfers the error message (see overview at FN 14).
FN 15: PRINT with numerical value 200
Example: FN 15: PRINT 200
Transfers the ETX character (end of text).
FN 15: PRINT with Q parameters Q1 to Q255
Example: FN 15: PRINT Q20
Transfers the value of the Q parameter.
You can transfer up to six Q parameters and numerical values
simultaneously. The TNC separates them with slashes.
Example NC block
Range of error numbers
Standard dialog text
0 ... 299
FN 14: Error code 0 .... 299
300 ... 799
PLC dialogs from 0....499
180 FN14: ERROR = 254
The machine tool builder may have programmed a
standard dialog that differs from the text above.
23 FN 15: PRINT 1/Q1/2/Q2