Technical data

Table Of Contents
S7 Communication
System Software for S7-300/400 System and Standard Functions - Volume 2/2
21-44
A5E00739858-01
In/Out Parameter LOCAL
If the communications partner is an S7 CPU, the in/out parameter LOCAL contains
its current status. The first byte is reserved, the second byte contains an ID for the
status.
Operating Mode Corresponding Identifier
STOP 00H
Warm restart 01H
RUN 02H
Hot restart 03H
HOLD 04H
Cold restart 06H
RUN_R 09H
LINK-UP 0BH
UPDATE 0CH
Error Information
The following table contains all the error information specific to SFB 22 that can be
output with the parameters ERROR and STATUS.
ERROR
STATUS
(Decimal)
Explanation
0 11 Warning:
New job cannot take effect since previous job is not yet completed.
The job is now being processed in a priority class having lower priority.
0 25 Communication has started. The job is being processed.
1 1 Communications problems, for example
Connection description not loaded (local or remote)
Connection interrupted (for example, cable, CPU off, CP in STOP mode)
1 2 Negative acknowledgement from the partner device. The function cannot be
executed.
1 4 Error in PHYS, LOG or LOCAL involving the data length or data type.
1 8 Access to a remote object was rejected.
1 10 Access to a local user memory not possible (for example, access to a deleted
DB).
1 12 When the SFB was called,
An instance DB was specified that does not belong to SFB 22
No instance DB was specified, but rather a shared DB.
No instance DB found (loading a new instance DB from the PG).
1 20
S7-400: Not enough work memory available. If there is still enough total
work memory available, then the solution is to compress the work memory.
H system: a first call of SFB is not possible during an update since the
communication buffer in the work memory is being created. Measures that
change the work memory are not possible during an update.