Technical data
Linkage with PLC
136 VIPA GmbH CP486 ⋅ 00/14
6.3.3.18 Write File or Device
Parameterization of FB3: F-Nr 64 ($40 hex)
DOSP handle of file
QT/N no. of DB with data to be written
QANF position of data in DB
QLAE length of data record to be written in words
The number of words to read from the file is not allowed to be higher than 504, otherwise the
function is aborted with errors.
An exchange of bytes in a data word or doubleword is not provided in this function. All data are
transferred unchanged from the PC to the CP486. In most of the cases it is delt with ASCII-files
where an exchange is proved anyway to be not necessary. If required, the exchange must be done on
the AT or PLC side, depending on the demands.
If the function was terminated without errors but the written number is lower than the required, then
a partial write error has probably occurred during the execution, or the character ^Z ASCII-code 26,
1A hex has been written to a character device (standard output).