EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
9.10 Data block control
S7-1200 Programmable controller
542 System Manual, V4.2, 09/2016, A5E02486680-AK
Parameter
Declaration
Data type
Memory area
Description
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
block) (Page 534)".
You can find additional information on valid data types under "Data types (Page 125)".
Parameter RET_VAL
Error code*
(W#16#...)
Explanation
0000
No error occurred.
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.
80B1
The DB with the specified number does not exist on the CPU.
80B2
Data blocks of motion control technology objects cannot be read with the "ATTR_DB" instruction.
General error
information
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.
9.10.4
DELETE_DB (Delete data block)
Table 9- 224 DELETE_DB instruction
LAD / FBD
SCL
Description
ret_val := DELETE_DB(
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals