EasyManua.ls Logo

HEIDENHAIN iTNC 530 HSCI - Module 9240 Open a File; PLC Files

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 1419
8.5.3 PLC files
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.
Module 9240 Open 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 by 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)
Bit 3 is only evaluated if bit 2 = 0:
Bit 3 = 0: Do not create file
Bit 3 = 1: Create file if it does not exist
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
Note
The following modules must be called only in a submit job or spawn job.

Table of Contents

Other manuals for HEIDENHAIN iTNC 530 HSCI

Related product manuals