Technical data

Table Of Contents
Common Parameters for SFCs
System Software for S7-300/400 System and Standard Functions - Volume 1/2
2-8
A5E00709327-01
Output Parameters RET_VAL and BUSY
The status of the job execution is indicated by the output parameters RET_VAL
and BUSY.
Refer also to the note in Evaluating Errors with the Output Parameter RET_VAL.
In Case 1 (first call with REQ=1), W#16#7001 is entered in RET_VAL if system
resources are free and the input parameters are correct. BUSY is then set.
If the required system resources are currently being used or the input
parameters have errors, the corresponding error code is entered in RET_VAL
and BUSY has the value 0.
In Case 2 (call while the same job is active), W#16#7002 is entered in
RET_VAL (this is a warning that the job is still being processed), and BUSY is
set.
The following applies to the last call for a job:
- With SFC 13 "DPNRM_DG," SFC 67 "X_GET" and SFC 72 "I_GET" the
number of supplied data is entered in RET_VAL as a positive number of
bytes if no error occurred. BUSY then has the value 0.
If an error occurs, RET_VAL contains the error information. You must not
evaluate BUSY in this case.
- With SFC 59 "RD_REC" the size of the data record in bytes is entered in
RET_VAL or the value 0 if no error occurred (refer to Reading a Data
Record with SFC 59 "RD_REC"). In this case, BUSY has the value 0. If an
error occurs, the error code is entered in RET_VAL and BUSY has the
value 0.)
- With all other SFCs, if the job was executed error-free, 0 is entered in
RET_VAL, and BUSY has the value 0. If an error occurs, the error code is
entered in RET_VAL and BUSY has the value 0.
Note
If the first and last call come together, the reaction is the same for RET_VAL and
BUSY as described for the last call.