6 – 322 HEIDENHAIN Technical Manual TNC 426, TNC 430
Module 9244 Writing to a file line by line
To write to a table, use Module 9246.
With Module 9244 you write line-by-line to an ASCII file.
Open the file with Module 9240.
If file is opened in “buffered” mode:
n Processing time is shorter.
n Files are saved to the hard disk only if more than 512 bytes are overwritten
in several calls, or if the file is closed.
n The number of data specified in the transfer string is overwritten.
If file is opened in “record oriented” mode:
n Processing time is longer.
n The data are saved immediately to the hard disk.
n Exactly one line is overwritten. If there is a difference in length, the following
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 W1022
Error recognition:
Marker Value Meaning
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