Plc Files - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

6.13.22 PLC Files

December 2001
With modules you can create PLC files and read or write in them line-by-line.
PLC files are in ASCII format and are used, for example, for saving data
specific to the PLC.
Note
The following modules must be called only in a submit job or spawn job.
Module 9240 Opening a file
You can open up to eight files simultaneously. They are accessed from the
process in which they were opened (submit job or spawn job).
If you want to prevent the file from being opened in more than one process,
use the "lock file" mode.
To ensure adequate speed, use the "buffered" mode to read from and write
to ASCII files. In this mode a part of the file is buffered in the main memory.
This mode is not permitted for tables.
When the process is ended (EM in the submit job or spawn job), all files
opened for this process are closed.
After the file is opened, Module 9240 always transfers a "file handle." The file
handle is a serial number that can be used to select this file again in other
modules.
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 (tables)
Bit 2 = 1: Buffered (ASCII files)
PS
B/W/D/K/S<String with file name>
complete path and file name
CM
9240
PL
D
<File handle>
Number for use in other modules
–1: Error code in W1022
Error recognition:
Marker
Value
Meaning
W1022
1
Inadmissible mode
3
Incorrect string number
7
File could not be opened
20
Module was not called in a submit job or spawn job
Display and Operation
6 – 319

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