Fn 19: plc: transfer values to plc, Fn 20: wait for: nc and plc synchronization, Programming: q parameters 8.8 additional functions – HEIDENHAIN TNC 128 (77184x-02) User Manual
Page 220

Programming: Q Parameters
8.8
Additional functions
8
220
TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014
FN 19: PLC: Transfer values to PLC
This function may only be used with the permission
of your machine tool builder.
The
FN 19: PLC function transfers up to two numerical values or Q
parameters to the PLC.
FN 20: WAIT FOR: NC and PLC synchronization
This function may only be used with the permission
of your machine tool builder.
With the
FN 20: WAIT FOR function you can synchronize the NC
and PLC during a program run. The NC stops machining until the
condition that you have programmed in the FN 20: WAIT FOR block
is fulfilled.
WAIT FOR SYNC is used whenever you read, for example, system
data via
FN18: SYSREAD that require synchronization with real
time. The TNC stops the look-ahead calculation and executes the
subsequent NC block only when the NC program has actually
reached that block.
Example: Pause internal look-ahead calculation, read current
position in the X axis
32 FN 20: WAIT FOR SYNC
33 FN 18: SYSREAD Q1 = ID270 NR1 IDX1