EasyManua.ls Logo

HEIDENHAIN iTNC 530 HSCI - Module 9242 Position in a File

HEIDENHAIN iTNC 530 HSCI
1966 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
July 2013 8.5 Files 1421
Module 9242 Position 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 code:
Marker Value Meaning
M4203 0 Cursor was positioned
1 Error code in W1022
W1022 1 Impermissible mode
2 Incorrect file handle
7 File system error
20 Module was not called in a spawn job or submit job

Table of Contents

Other manuals for HEIDENHAIN iTNC 530 HSCI

Related product manuals