Name Data Type Initial Value Description, Parameter Values
NB WORD 16#0000 Number of data set blocks (decimal 1 … 1724)
Input NB is used to specify the number of blocks
contained in the data set. 32 binary data or 16
word data or 8 double word data are read per
block.
Valid values: 1 … 1724
Example:
n SM = ADR(%MW0.0) and NB = 1: Data are
stored at %MW0.0 to %MW0.15 (1 block = 16
word data)
n SM = ADR(%MW0.0) and NB = 2: Data are
stored at %MW0.0 to %MW0.31 (2 blocks =
32 word data)
SEG BYTE 16#00 ID number of the data segment (16#01 or 16#02)
BNR WORD 16#0000 Starting block number in the Flash memory data
segment (decimal 0 … 1723)
SM DWORD 16#00000000 Destination address for the read data set
(address of the first variable where the data are
placed)
VAR_OUTPUT
DONE BOOL FALSE Reading procedure is completed (DONE = TRUE)
This output always has to be considered together
with output ERR.
The following applies:
n DONE = TRUE and ERR = FALSE: Reading
completed. The data set has been stored
beginning at the defined input SM.
n DONE = TRUE and ERR = TRUE: An error
occurred while reading the data set. Output
ERNO indicates the error number.
Configuration and programming
AC500-S Libraries > SafetyExt_AC500_V22.lib
30.03.2017AC500-S250