HEIDENHAIN TNC 426 PB/M Technical Manual page 650

Table of Contents

Advertisement

6 – 320
Module 9241 Closing a file
With this module you close a file that has been opened with Module 9240. You
must close the file in the process (submit job or spawn job) in which you
opened it.
Call:
PS
D
<File handle>
Number from Module 9240
CM
9241
Error recognition:
Marker
Value
M4203
0
1
W1022
2
20
Module 9242 Positioning in a file
With this module you change the position of the cursor in a file opened with
Module 9240. The new position is provided as result from Module 9242.
If the file was opened in the "record oriented" mode (tables), the cursor is
positioned line by line.
If the file was opened in the "buffered" mode, the cursor is positioned
character by character.
If you indicate a position before the beginning or after the end of the file, the
cursor is positioned to the beginning or end of the file, respectively. The
addressing of the new position is relative to the beginning or end of the file, or
to the current position. You can interrogate the current position by transferring
the position value zero relative to the current position.
Call only in a submit job or spawn job.
Call:
PS
D
<File handle>
Number from Module 9240
PS
B/W/D/K <Desired position>
PS
B/W/D/K <Mode>
0: Position relative to the file beginning
1: Position relative to the current position
2: Position relative to the file end
CM
9242
PL
B/W/D/K <New position>
–1: Error code in W1022
Error recognition:
Marker
Value
Meaning
W1022
1
Inadmissible mode
2
Incorrect file handle
7
File system error
20
Module was not called in a spawn job or submit job
Meaning
File was closed
Error code in W1022
Incorrect file handle
Module was not called in a submit job or spawn job
HEIDENHAIN Technical Manual TNC 426, TNC 430

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents