4.6.4.10 SF_FLASH_DEL
Delete a selected segment from the flash memory
This function block deletes a selected segment with user data from the Flash memory.
Input SEG defines the data segment within the Flash memory. In the SM560-S controller, two segments
numbered 1 and 2 (each providing 64 kBytes incl. CRC, flag and alignment) are reserved for the user.
Deleting a data segment within the Flash memory may take several PLC cycles.
Deletion of the data segment is triggered once by a FALSE/TRUE edge at input EN. Input EN will not be
evaluated again until the delete operation is completed (DONE = TRUE).
After the deletion procedure is finished, all function block outputs are updated. The deletion was successful if
DONE = TRUE and ERR = FALSE. If the outputs show DONE = TRUE and ERR = TRUE, the data segment
could not be deleted.
Table 24: FB Name: SF_FLASH_DEL
Name Data Type Initial Value Description, Parameter Values
VAR_INPUT
EN BOOL FALSE Activation of the FB using a positive edge
Deletion of the data segment is started once.
Input EN will not be evaluated again until the
delete operation is finished (DONE = TRUE).
EN = TRUE:
The function block is not processed, i.e. it does
not change its outputs anymore. This is not valid
during a delete operation.
SEG BYTE 16#00 ID number of the data segment (16#01 or 16#02)
VAR_OUTPUT
DONE BOOL FALSE Delete procedure is completed (DONE = TRUE)
Output DONE indicates that deletion of the data
segment is completed. This output always has to
be considered together with output ERR.
The following applies:
DONE = TRUE and ERR = FALSE:
Deletion completed. The data segment has been
deleted successfully.
DONE = TRUE and ERR = TRUE:
An error occurred while deleting the data seg-
ment. The data segment could not be deleted
successfully.
Configuration and programming
AC500-S Libraries > SafetyExt_AC500_V22.lib
30.03.2017 AC500-S 247