EasyManua.ls Logo

HEIDENHAIN TNC 430 PA - Data Transfer; Reading and Editing Table Fields in the PLC

HEIDENHAIN TNC 430 PA
1135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
December 2001 Display and Operation 6 311
Data transfer 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.
Reading and editing
table fields in the
PLC
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.
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:
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).
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

Table of Contents

Other manuals for HEIDENHAIN TNC 430 PA

Related product manuals