Technical data

Table Of Contents
SFCs for H CPUs
System Software for S7-300/400 System and Standard Functions - Volume 2/2
29-2
A5E00739858-01
The following table explains the permitted combinations of the input parameters
MODE and SUBMODE.
Job
MODE
Input
SUBMODE
Input
Disable link-up 3 0
Re-enable link-up 4 0
Disable updating 1 0
Re-enable updating 2 0
Remove the test component specified in the SUBMODE from the cyclical self-
test.
A test component can only be removed once.
20 0.1,...5
Add the test component specified in the SUBMODE to the cyclical self-test
again.
A test component can only be added again if it has been previously removed.
21 0.1,...5
Start the test component specified in the SUBMODE immediately.
The test component can't have been removed.
22 0.1,...5
The following table shows the assignment of the individual test components for the
cyclical self-test with the SUBMODE input values. (only relevant for the values 20,
21, and 22 of the input MODE)
Value from
SUBMODE
Associated Test Component
0 SP7 – ASIC – Test
1 Code memory test
2 Data memory test
3 Operating system code checksum test
4 Code block checksum test
5 Comparison of numbers, times, markers and data blocks in redundant operation.
How the SFC Operates
SFC 90 "H_CTRL" is an asynchronous SFC, in other words its execution can
extend over several SFC calls.
You start the job by calling SFC 90 with REQ=1.
If the job could be executed immediately, the SFC returns the value 0 at the BUSY
output parameter. Initialization of a long-term test routine ends with the first SFC
call (BUSY=0), even if the test covers multiple cycles (RET_VAL=W#16#0001 with
MODE=22). If BUSY has the value 1, the job is still active (see also Meaning of the
Parameters REQ, RET_VAL and BUSY with Asynchronous SFCs).