beautypg.com

Fn 29: plc: transfer values to the plc, 8 a d ditional functions – HEIDENHAIN TNC 620 (73498x-01) User Manual

Page 268

background image

268

Programming: Q parameters

8.8 A

d

ditional functions

The following conditions are permitted in the FN 20 block:

In addition, the FN20: WAIT FOR SYNC function is available. WAIT FOR
SYNC

is used whenever you read, for example, system data via FN18

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

FN 29: PLC: Transfer values to the PLC

The FN 29: PLC 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

Condition

Abbreviation

Equal

==

Less than

<

Greater than

>

Less than or equal

<=

Greater than or equal

>=

32 FN 20: WAIT FOR M4095==1

32 FN 20: APISPIN[0].NN_SPICONTROLINPOS==1

32 FN 20: WAIT FOR SYNC

33 FN 18: SYSREAD Q1 = ID270 NR1 IDX1

56 FN 29: PLC=+10/+Q3/+Q8/+7/+1/+Q5/+Q2/+15