Siemens Simatic ET200pro Operating Instruction page 53

Cpu 1516pro-2 pn
Hide thumbs Also See for Simatic ET200pro:
Table of Contents

Advertisement

Status of an asynchronous instruction
An asynchronous instruction shows its status via the block parameters STATUS/RET_VAL
and BUSY. Many asynchronous instructions also use the block parameters DONE and
ERROR.
The figure below shows the two asynchronous instructions WRREC and CREATE_DB.
Figure 5-3
Summary
The table below provides you with an overview of the relationships described above. It
shows in particular the possible values of the output parameters if execution of the
instruction is not complete after a call.
Note
You must evaluate the relevant output parameters in your program after each call
CPU 1516pro-2 PN (6ES7516-2PN00-0AB0)
Operating Instructions, 09/2016, A5E35873416-AA
The input parameter REQ starts the job to execute the asynchronous instruction.
The output parameter DONE indicates that the job was completed without error.
The output parameter BUSY indicates whether the job is currently being executed. When
BUSY =1, a resource is allocated for the asynchronous instruction. When BUSY = 0, the re-
source is free.
The output parameter ERROR indicates that an error has occurred.
The output parameter STATUS/RET_VAL provides information on the status of the job execu-
tion. The output parameter STATUS/RET_VAL receives the error information after the occur-
rence of an error.
Block parameters of asynchronous instructions using the instructions WRREC and
CREATE_DB as examples.
Basics of program execution
5.3 Asynchronous instructions
53

Advertisement

Table of Contents
loading

Table of Contents