Extended instructions
9.10 Data block control
S7-1200 Programmable controller
542 System Manual, V4.2, 09/2016, A5E02486680-AK
If bit 0 = 1, then bit 2 is irrelevant and gets the value
1.
• Bit 2 = 0: Retentive - The DB is regarded as re-
tentive if at least one value has been set as reten-
tive.
• Bit 2 = 1: Not retentive - The complete DB is not
retentive.
• Bit 3*= 0: The DB is either in the load memory (bit
0 = 1) or in the work memory (bit 0 = 0).
• Bit 3*= 1: The DB is generated in both the load
and the work memory
* The relationship between bit 0 and bit 3 is explained in the parameters of the instruction "CREATE_DB (Create data
You can find additional information on valid data types under "Data types (Page 125)".
80A1 Error in input parameter DB_NUMBER: the actual parameter selected
• Is "0"
• Is greater than the maximum permitted DB number for the CPU used.
The DB with the specified number does not exist on the CPU.
Data blocks of motion control technology objects cannot be read with the "ATTR_DB" instruction.
General error
See also: Common error codes for the Extended instructions (Page 553)
* You can display the error code as either integer or hexadecimal values in the program editor.
DELETE_DB (Delete data block)
Table 9- 224 DELETE_DB instruction
REQ := _bool_in_,
DB_NUMBER :=
_uint_in_,
BUSY => _bool_out_);
You use the instruction "DELETE_DB" to delete a
data block (DB) that the user program created by
calling the instruction "CREATE_DB (Page 534)".
If the data block was not created with
"CREATE_DB", DELETE_DB returns the error
code W#16#80B5 at the RET_VAL parameter.
The DELETE_DB call does not delete the select-
ed data block immediately, but rather at the cycle
control point after execution of the cycle OB.