Technical data
Linkage with PLC
CP 486 ⋅ 00/14 VIPA GmbH 129
6.3.3.8 Create File/Rewrite Existing File
Parameterization of FB3: F-Nr 60 ($3C hex)
DOSP attribute of new file
QT/N no. of DB with the file name
QANF position of file name in DB
QLAE length of file name in the DB in words
Content of DB: DW1 file name
DW2 ...
DW3 ...
...
Parameter:
Attribute: 00 normal
01 read-only
02 hidden
04 system
File attributes can be added up:
e.g. attribute 03 => file is read-only and hidden.
Return of FB3: DOSP Handle of the new file
Note:
Does a file with the specified name already exist, then it is cut to zero length, i.e. all present data are
deleted.