Table 26: FB Name: SF_FLASH_WRITE
Name Data Type Initial Value Description, Parameter Values
VAR_INPUT
EN BOOL FALSE Activation of the FB using a positive edge
The following applies:
n EN = FALSE/TRUE edge: Reading the data
set is carried out once.
n EN = TRUE: The function block is not pro-
cessed, i.e. it does not change its outputs
anymore.
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:
- SM = ADR(%MW0.0) and NB = 1: Data are
stored at %MW0.0 to %MW0.15 (1 block = 16
word data)
- 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 Source start address (address of the first variable
from where the data will be written to the Flash
memory)
At input SM, the address of the first variable of the
data set is specified using an ADR operator. Once
the write operation for a data set has been started
(by a FALSE/TRUE edge at input EN), the data
contained in the data set must not be changed
anymore until the write operation is finished
(DONE = TRUE).
VAR_OUTPUT
Configuration and programming
AC500-S Libraries > SafetyExt_AC500_V22.lib
30.03.2017AC500-S254