Output Description

DONE   BOOL \    (done)

Output DONE indicates that the read operation of the data set is completed. This output has always to be considered together with output ERR.

The following applies:

DONE = TRUE and ERR = FALSE: The read operation is completed. The data set is stored beginning at the defined input SM.

DONE = TRUE and ERR = TRUE: An error occurred while reading the data set. Output ERNO signalizes the error number.

ERR   BOOL \    (error)

Output ERR indicates whether an error occurred during the read operation. This output always has to be considered together with output DONE. If an error has occurred, the following applies: DONE = TRUE and ERR = TRUE. Output ERNO signalizes the error number.

ERNO   WORD \    (error \ number)

The output ERNO indicates an error number(see, error messages): Error Messages of the Function Block Libraries

The functions FLASH_DEL, FLASH_WRITE and FLASH_READ are executed in the background by the operating system. This procedures can take quite long time, since the PLC user program is processed with priority. Output ERNO then indicates that the block execution is in progress (0x0FFF).

During this phase, the outputs ERR and DONE are set to FALSE.

The inputs and outputs can neither be duplicated nor inverted.

The following figure shows the structure of a Flash segment.

Byte: 1 | 2 3 | 4 5 | 6 …. 29 | 30 31 | 32 33 34

Byte-

Offset

Block-

No.

Word 1 Word 2 Word 3 …. Word 15 Word 16 CRC

Written

Identifier

0 0                
34 1                
68 2                
               
65450 1925                
65484 1926