Indexed assignment, Transferring values to/from the plc – HEIDENHAIN TNC 406 User Manual
Page 219

198
10 Programming: Q Parameters
1
0
.7 Output of Q P
a
ra
met
e
rs and Messag
e
s
Indexed assignment
The function FN16: INDEXED DATA ASSIGNMENT accesses a
Q parameter in a previously created list (for example, a list of gap
diameter values).
In the following example, Q55 is the pointer parameter that points to
a Q parameter in a list, and Q200 is the base parameter that indicates
the beginning of the list.
Example:
The TNC assigns to Q parameter Q20 the value that is in the fifth
position in the list from Q200.
Transferring values to/from the PLC
With the function FN 19: PLC you can send data to the PLC or receive
data from the PLC.
Example:
The value 11 is transferred to word D280.
The contents of Q parameter Q13 are transferred to word D284
(optional entry, can be ignored with NO ENT).
The value from word D512 is transferred to Q parameter Q77 by the
PLC and can now be evaluated in the subsequent NC part.
Q200<-- Q20
Q201 = 0.04
Q202 = 0.08
Q203 = 0.12
Q204 = 0.16
Q205 = 0.20<-- Q55
Q206 = 0.24
Q207 = 0.28
.....
12 FN 0: Q55 = 5
...
23 FN 16: Q20 = Q200 (Q55)
...
22 FN 19: PLC + 11/+Q13/Q77