EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 543

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
System Manual, V4.2, 09/2016, A5E02486680-AK
543
Functional description
The "DELETE_DB" instruction works asynchronously, that is, its execution extends over
multiple calls. You start the interrupt transfer by calling the instruction with REQ = 1.
Output parameter BUSY and bytes 2 and 3 of output parameter RET_VAL show the status of
the job.
The deletion of the data block is complete when output parameter BUSY has the value
FALSE.
Parameters
The following table shows the parameters of the "DELETE_DB" instruction:
Parameter
Declaration
Data type
Memory area
Description
REQ Input BOOL I, Q, M, D, L or constant REQ =1: Request to delete the DB with the num-
ber in parameter DB_NUMBER
DB_NUMBER
Input
UINT
I, Q, M, D, L or constant
Number of the DB to be deleted
RET_VAL
Output
INT
I, Q, M, D, L
Error information (see "RET_VAL parameter")
BUSY Output BOOL I, Q, M, D, L BUSY= 1: The process is not yet complete.
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.
7000
First call with REQ = 0: No data transfer active; BUSY has the value "0".
7001
First call with REQ = 1: Data transfer triggered; BUSY has the value "1".
7002
Intermediate call (REQ irrelevant): Data transfer already active; BUSY has the value "1".
80A1 Error in input parameter DB_NUMBER:
The value at the parameter is "0".
The value at the parameter 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.
80B4
The DB cannot be deleted because the memory card of the CPU is write-protected.
80B5
The DB was not created using "CREATE_DB".
80BB
Not enough load memory.
80C3
The "Delete a DB" function cannot be executed at this time due to a temporary resource bottleneck.
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals