1612 HEIDENHAIN Technical Manual MANUALplus 620
Module 9246 Write to a field in a table
The module writes a string to a data field in a table opened by Module 9240 in
"record-oriented" mode. The data field is addressed by the field name and the
line number.
To maintain a high processing speed, multiple lines should be written in
ascending order.
Pay attention to the upper/lower case of field names.
The field defined by the column name and line number is overwritten.
The module transfers a string.
Call:
PS D <File handle>
from Module 9240
PS B/W/D/K <Line>
0 to 65 535
PS B/W/D/K/S<String number, column name>
0 to 15
PS B/W/D/K/S<String number, contents to be written>
0 to 15
CM 9246
Error recognition:
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Field was written to
1 Error code in NN_GenApiModuleErrorCode
(W1022)
NN_GenApiModule
ErrorCode (W1022)
1 Line does not exist in table
2 Incorrect "file handle" or table was opened
in "buffered" mode
3 Impermissible string numbers
6 Table is write-protected
7 Not a numerical field (Module 9256)
11 The transferred value cannot be saved to
the addressed field. Incorrect format
20 Module was not called in a spawn or
submit job
29 Opened file is not of the .TAB or .P type.
30 Column name not found