FLASH_READ

../_images/7ffc83a7e38aa2e90a33139000eba54e1

The Function Block reads a data set from a data segment of the Flash and stores the read data set beginning at the start flag defined by SM. The data of the data set have been previously stored to the Flash using the Function Block FLASH_WRITE.

Important note:

Access to the Flash is only possible using the Function Blocks FLASH_WRITE and FLASH_READ.

NB Function Blocks are read starting at Function Block BNR within segment SEG and stored starting at address SM.

Either 32 binary data or 16 word data or 8 double word data are read per Function Block.

One Function Block contains 34 bytes:

32 bytes of data

1 byte CRC checksum

1 byte “written identifier”

Reading a data set is triggered once by a FALSE/TRUE edge at input EN. If no error occurred when reading the data, DONE is set to TRUE and the outputs ERR and ERNO are set to FALSE. The data set is stored beginning at the defined start flag SM. Storing the data set can take several PLC cycles.

If an error occurs during reading, DONE and ERR are both set to TRUE. The error type is indicated at output ERNO.

Available as of PLC runtime system: V1.0
Included in library: SysInt_AC500_V10.lib
Type Function Block with historical values