Technical data

Table Of Contents
SFCs for H CPUs
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
29-3
Identifying A Job
The input parameters MODE and SUBMODE specify the job. If these match a job
that is not yet completed, the SFC call is a follow-on call.
Parameters
Parameter Declaration Data Type Memory Area Description
REQ INPUT BOOL I, Q, M, D, L,
const.
Level-triggered control parameter REQ=1:
Triggers the job
MODE INPUT BYTE I, Q, M, D, L,
const.
Job
SUBMODE INPUT WORD I, Q, M, D, L,
const.
Secondary job
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is being
executed, the return value contains an error
code. Make sure that you evaluate
RET_VAL each time the block has been
executed.
BUSY OUTPUT BOOL I, Q, M, D, L BUSY=1:
The job is not yet completed.
Error Information
Error Code (W#16#...) Explanation
0000 Job executed without error
7000 REQ = 0 at first call: the job was not activated; BUSY has the value 0.
7001 REQ = 1 at first call: the job was started; BUSY has the value 1.
7002 Follow-on call (REQ irrelevant). The activated job is still running; BUSY has
the value 1.
0001 When MODE=1: updating was already disabled.
When MODE=3: link-up was already disabled.
When MODE=22: the test component is already running and cannot be
restarted.
8082 When MODE=1: updating is already active and can no longer be
disabled.
When MODE=3: link-up is already active and can no longer be disabled.
When MODE=20: the test component indicated has already been
removed from the cyclical self-test.
When MODE=21: the test component indicated has not been removed
from the cyclical self-test.
When MODE=22: the test component indicated cannot be executed
because you have removed in from the cyclical self-test.
8090 The MODE input parameter has an invalid value.
8091 The SUBMODE input parameter has an invalid value.
8xyy General error information, see Evaluating Errors with Output Parameter
RET_VAL