D19 plc: transfer values to the plc, D20 wait for: nc and plc synchronization, 7 a d ditional f unctions – HEIDENHAIN TNC 640 (34059x-01) ISO programming User Manual
Page 245

HEIDENHAIN TNC 640
245
8.7 A
d
ditional F
unctions
Example: Assign the value of the active scaling factor for the Z
axis to Q25
D19 PLC: Transfer values to the PLC
The D19 function transfers up to two 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
D20 WAIT FOR: NC and PLC synchronization
With the D20 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 D20 block is fulfilled. The TNC can check the
following PLC operands:
Execution status, 992
10
-
Block scan active
1 = yes, 0 = no
11
-
Search phase
14
-
Number of the last FN14 error
16
-
Real execution active
1 = execution , 2 = simulation
Group name, ID no.
Number
Index
Meaning
N55 D18: SYSREAD Q25 = ID210 NR4 IDX3
N56 D19 P01 +10 P02 +Q3 *
This function may only be used with the permission of
your machine tool builder.
PLC operand
Abbreviation
Address range
Marker
M
0 to 4999
Input
I
0 to 31, 128 to 152
64 to 126 (first PL 401 B)
192 to 254 (second PL 401 B)
Output
O
0 to 30
32 to 62 (first PL 401 B)
64 to 94 (second PL 401 B)
Counter
C
48 to 79
Timer
T
0 to 95