Output of q parameters and messages -11, 6 output of q parameters and messages – HEIDENHAIN TNC 360 ISO Programming User Manual
Page 145
7-11
TNC 360
7
Programming with Q Parameters
Function D19: PLC transmits up to two numerical values or Q parameters
to the PLC.
Input increment and unit of measure: 1µm or 0.001°
Example: N25 D19 P01 +10 P02 +Q3 *
The number 10 corresponds to 10 µm or 0.01°
7.6 Output of Q Parameters and Messages
Displaying error messages
With the function D14: ERROR NUMBER you can call messages that
were pre-programmed by the machine tool builder.
If the TNC encounters a block with D14 during a program run or test run, it
interrupts the run and displays an error message. The program must then
be restarted.
Input example:
N50 D14 P01 254 *
The TNC will display the text of error number 254.
Error number to be entered
Prepared dialog text
0 to 299
ERROR 0 to ERROR 299
300 to 399
PLC ERROR 01 to PLC ERROR 99
400 to 483
DIALOG 1 to 83
484 to 499
USER PARAMETER 15 to 0
The machine tool builder may have programmed a text that differs from the above.
Output through an external data interface
The function D15: PRINT transmits the values of Q parameters and error
messages over the data interface. This enables you to send such data to
external devices, for example to a printer.
• D15: PRINT with numerical values up to 254
Example: N100 D15 P01 20 *
Transmits the corresponding error message (see overview for D14).
• D15: PRINT with Q parameter
Example: N200 D15 P01 Q20 *
Transmits the value of the corresponding Q parameter.
Up to six Q parameters and numerical values can be transmitted simulta-
neously.
Example: N250 D15 P01 4 P02 Q05 P03 4 P04 Q25 *
Assigning values for the PLC