Special Functions | Freely definable tables
12
522
HEIDENHAIN | TNC 620 | Conversational Programming User's Manual | 10/2017
FN 27: TABWRITE – Write to a freely definable table
With the FN 27: TABWRITE function you write to the table that you
previously opened with FN 26: TABOPEN.
You can define multiple column names in a TABWRITE block. The
column names must be written between quotation marks and
separated by a comma. You define in Q parameters the value that
the control is to write to the respective column.
The FN 27: TABWRITE function by default writes
values to the currently open table, even in the Test
Run operating mode. The FN 18 ID992 NR16 function
allows you to retrieve the operating mode in which the
program is running. If the FN27 function is to be run
only in the Program run, single block and Program
run, full sequence operating modes, you can skip the
respective program section by using a jump statement.
Further information: "If-then decisions with Q
parameters", page 376
You can write only to numerical table fields.
If you wish to write to more than one column in a block,
you must save the values under successive Q parameter
numbers.
Example
You wish to write to the columns “Radius,” “Depth” and “D” in
line 5 of the presently opened table. The value to be written in the
table must be saved in the Q parameters Q5, Q6 and Q7.
53 Q5 = 3.75
54 Q6 = -5
55 Q7 = 7.5
56 FN 27: TABWRITE 5/"RADIUS,DEPTH,D" = Q5