Technical data

Table Of Contents
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
1-42
A5E00709327-01
If you want to program OB85 dependent on the possible error codes, we
recommend that you organize the local variables as follows:
Variable Type
OB85_EV_CLASS BYTE
OB85_FLT_ID BYTE
OB85_PRIORITY BYTE
OB85_OB_NUMBR BYTE
OB85_DKZ23 BYTE
OB85_RESERVED_2 BYTE
OB85_Z1 WORD
OB85_Z23 DWORD
OB85_DATE_TIME DATE_AND_TIME
The following table shows the event that started OB85:
OB85_EV_CLASS OB85_FLT_ID Meaning
B#16#35 B#16#A1 As a result of your configuration created with STEP 7, your
program or the operating system creates a start event for an OB
that is not loaded on the CPU.
OB85_Z1: The respective local variable of the called OB which
is determined by OB85_Z23.
OB85_Z23:
- high word: Class and number of the event causing the OB
call
- low word, high byte: Program level and OB active at the
time of error
low word, low byte: active OB
B#16#35 B#16#A2 As a result of your configuration created with STEP 7, your
program or the operating system creates a start event for an OB
that is not loaded on the CPU.
OB85_Z1 and OB85_Z23 as for OB85_FLT_ID=B#16#A1
B#16#35 B#16#A3 Error when the operating system accesses a module
OB85_Z1: Error ID of the operating system
- high byte: 1=integrated function, 2=IEC-Timer
- low byte: 0=no error resolution, 1=block not loaded,
2=area length error, 3=write-protect error
OB85_Z23:
- high word: Block number
- low word: Relative address of the MC7 command causing
the error. The block type must be taken from OB
85_DKZ23 (B#16#88: OB, B#16#8C: FC, B#16#8E: FB,
B#16#8A: DB).
B#16#35 B#16#A4 PROFInet Interface DB cannot be addressed
B#16#34 B#16#A4 PROFInet Interface DB can be addressed again