D27: tapwrite: write to a freely definable table, Freely definable tables 11.7 – HEIDENHAIN TNC 640 (34059x-02) ISO programming User Manual
Page 365

Freely definable tables
11.7
11
TNC 640 | User's Manual for DIN/ISO Programming | 5/2013
365
D27: TAPWRITE: Write to a freely definable table
After you have opened a table with
D26: TABOPEN you can use the
function
D27: TAPWRITE to write to it.
You can define and write to several column names in a
TABWRITE
block. The column names must be written between quotation
marks and separated by a comma. You define the values that the
TNC is to write to the respective column with Q parameters.
Note that by default the
D27: TABWRITE function
writes values to the currently open table also in
the Test Run mode. The
D18 ID992 NR16 function
enables you to query in which operating mode the
program is to be run. If the
D27 function is to be run
only in the Program Run operating modes, you can
skip the respective program section by using a jump
command If-then decisions with Q parameters.
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 values to be written to the table
must be saved in the Q parameters Q5, Q6 and Q7.
N53 Q5 = 3.75
N54 Q6 = -5
N55 Q7 = 7.5
N56 D27: TABWRITE 5/"RADIUS,DEPTH,D" = Q5