Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 131
6.3.3.10 Open File
Parameterization of FB3: F-Nr 61 ($3D hex)
DOSP access mode
QT/N no. of DB with file name
QANF position of file name in DB
QLAE length of file name in DB in words
Content of DB: DW1 file name
DW2 ...
DW3 ...
...
Parameter:
Access mode: 00 open file for reading
01 open file for writing
02 open file for reading and writing
Return of FB3: DOSP handle of the new file
Note:
After opening the file, the access mode can no more be changed, just after closing and renewed
opening it is possible to apply another access mode. Net accesses are possible for this function but
are not taken into account.
(SHARE.EXE must be loaded)
6.3.3.11 Write Physically a File to Disk (Commit File)
This function ensures a physical transfer of all modified internal data buffers of a CP486 file to the
drive and updating of date and time of the last modification in the directory and updating of the file
size. This function is equivalent to file closing and renewed opening.
Parameterization of FB3: F-Nr 104 ($68 hex)
DOSP handle number of file to be written
This function does not transfer any data from the PC to the CP486.