Data Transfer; Reading And Editing Table Fields In The Plc - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

Data transfer

Reading and editing
table fields in the
PLC
December 2001
Valid for tables with the file name extensions .TAB, .P and .CDT:
If a freely definable table is transferred through a data interface, in the
externally saved file the structure definition is saved between the lines
#STRUCTBEGIN and #STRUCTEND. The contents of the table stand behind
the line # STRUCTEND.
You can read and overwrite table fields in the PLC by using modules. You can
give the user access to parts of tables for editing.
Note
The following modules must be called in a submit job or spawn job.
When entering the column names, pay attention to the case of the letters
(whether they are small or capital).
Module 9245 Reading a field out of a table
Open the table with the file name extension .TAB or .P with Module 9240, and
not in the "buffered" mode. If an error occurs, the result is undefined.
The module provides the contents as 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, result>
0 to 15
CM
9245
Error recognition:
Marker
Value
Meaning
M4203
0
Field was read
1
Error code in W1022
W1022
1
Line does not exist in table
2
Incorrect "file handle" or table was opened in
"buffered" mode
3
Impermissible string numbers
7
Module could not read from the table
20
Module was not called in a spawn job or submit job
29
The opened file is not a table (extension .TAB, .P)
30
Column name not found
Display and Operation
6 – 311

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents