1610 HEIDENHAIN Technical Manual MANUALplus 620
Module 9244 Write to an ASCII file line by line
To write to a table, use Module 9246.
The module writes a line from a PLC string to an ASCII file already opened by
Module 9240 in "buffered" mode.
If file is opened in "buffered" mode:
Processing time is shorter.
Files are saved to the hard disk only if more than 512 bytes are overwritten
in several calls, or if the file is closed.
The number of data specified in the transfer string is overwritten.
If file is opened in "record oriented" mode:
Processing time is longer.
The data is immediately saved to the hard disk.
Exactly one line is overwritten. If there is a difference in length, the
subsequent data is displaced by the difference.
Call:
PS D <File handle>
Number from Module 9240
PS B/W/D/K/S<String number, source data>
0 to 7
CM 9244
PL B/W/D <Number of written bytes (including LF)>
–1: Error code in NN_GenApiModuleErrorCode (W1022)
Error recognition:
Marker Value Meaning
NN_GenApiModule
ErrorCode (W1022)
2 Incorrect file handle
3 Incorrect string number
7 File system error
20 Module was not called in a spawn job or
submit job