Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1609

Hide thumbs Also See for MANUALplus 620:

Advertisement

January 2012
Module 9243 Read from an ASCII file line by line
To read from a table, use Module 9245.
The module reads a line from the ASCII file opened with Module 9240,
and writes it to a PLC string.
Different processing times will result depending on whether you opened the
file with the "buffered" option (buffered is faster).
The module reads up to a line break (line feed, '\n'), but not more than 127
characters. The line break is not saved in the result string, but is counted for
the number of characters read.
The result is undefined when reading non-ASCII-coded files.
A certain amount of binary data is saved in the target string, but cannot be
used.
Call:
PS
D
<File handle>
Number from Module 9240
PS
B/W/D/K <String number with result>
0 to 7
CM
9243
PL
B/W/D
<Number of read bytes>
>0: Line has been read
0: File end has been reached
–1: Error code in NN_GenApiModuleErrorCode (W1022)
Error recognition:
Marker
Value
NN_GenApiModule
2
ErrorCode (W1022)
3
7
20
8.12 Tables
Meaning
Incorrect file handle
Incorrect string number
File system error
Module was not called in a spawn job or
submit job
1609

Advertisement

loading