D29: transfer values to the plc, 7 a d ditional f unctions – HEIDENHAIN TNC 320 (340 55x-05) ISO programming User Manual
Page 228

228
Programming: Q Parameters
8.7 A
d
ditional F
unctions
In addition, the D20 function is available. WAIT FOR SYNC is used
whenever you read, for example, system data via D18 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: Stop program run until the PLC sets marker 4095 to 1
Example: Stop program run until the PLC sets the symbolic
operand to 1
Example: Pause internal look-ahead calculation, read current
position in the X axis
D29: Transfer values to the PLC
The D29 function transfers up to eight numerical values or
Q parameters to the PLC.
Increments and units: 0.1 µm or 0.0001°
Example: Transfer the numerical value 10 (which means 1 µm or
0.001°) to the PLC
Less than
<
Greater than
>
Less than or equal
<=
Greater than or equal
>=
N32 D20: WAIT FOR M4095==1
N32 D20: APISPIN[0].NN_SPICONTROLINPOS==1
N32 D20: WAIT FOR SYNC
N33 D18: SYSREAD Q1 = ID270 NR1 IDX1
Condition
Abbreviation
N56 D29 P01 +10 P02 +Q3