Siemens sinumerik 840d Programming Manual page 85

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

02.98
1
840D
840D
NCU 571
NCU 572
NCU 573
Explanation of the parameters
error
file
line
number
result
Function
One or several lines can be read from a file with the
READ command. The lines read are stored in one
array element of an array. The information is
available as STRING.
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
1.19 READ: Read lines in file (as from SW 5.2)
810D
840Di
Error variable for return (call-by-reference parameter, type INT)
0
No error
1
Path not allowed
2
Path not found
3
File not found
4
Incorrect file type
13
Insufficient access rights
21
Line not available (parameter "line" or "number" larger
than number of lines in file)
22
Array length of "result" variable too small
23
Line range too large (parameter "number" has been selected so
large, that reading goes beyond the end of the file)
Name/path of the file to be read (call-by-value parameter of type
STRING with a max. length of 160 bytes). The file must be stored in the
user memory of the NCK (passive file system). The file name can be
preceded by the domain identifier _N_. If the domain identifier is
missing, it is added correspondingly.
The file identifier ("_" plus three characters, e.g. _SPF) is optional. If
there is no identifier, the file name is automatically added _MPF.
If there is no path specified in "file", the file is searched for in the current
directory (=directory of selected program). If a path is specified in "file",
it must start with a slash "/" (absolute path indication).
Position indication of the line range to be read (call-by-value parameter
of type INT).
0
The number of lines before the end of the file
which is specified by the parameter "number" is read.
1 to n
Number of the first line to be read.
Number of lines to be read (call-by-value parameter of type INT).
Array of type STRING, where the read text is stored
(call-by-reference parameter with a length of 255).
Flexible NC Programming
1
1-85

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents