Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1607

Hide thumbs Also See for MANUALplus 620:

Advertisement

January 2012
To append data to an existing file, set bit 0 = 1 (reading and writing) and bit 2
= 0 (record oriented).
Call:
PS
B/W/D/K <Mode>
Bit#0 = 0: Read only
Bit#0=1: Read and write
Bit#1=0: Do not lock file
Bit#1 = 1: Lock file
Bit#2 = 0: Record oriented (for tables)
Bit#2 = 1: Buffered (for ASCII files)
PS
B/W/D/K/S<String with file name>
Complete path, file name and extension
CM
9240
PL
D
<File handle>
Number for use in other modules
–1: Error code in NN_GenApiModuleErrorCode (W1022)
Error recognition:
Marker
Value
NN_GenApiModule
1
ErrorCode (W1022)
3
7
20
Module 9241 Close 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
NN_GenApiModuleEr
0
ror (M4203)
1
NN_GenApiModuleEr
2
rorCode (W1022)
20
8.12 Tables
Meaning
Impermissible mode
Incorrect string number
File could not be opened
Module was not called in a spawn or submit
job
Meaning
File was closed
Error code in NN_GenApiModuleErrorCode
(W1022)
Incorrect file handle
Module was not called in a spawn or submit job
1607

Advertisement

loading