Technical data

Table Of Contents
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
1-29
1.16 Time Error Organization Block (OB80)
Description
The operating system of the S7-300 CPU calls OB80 whenever an error occurs
while executing an OB. Such errors include: exceeding the cycle time, an
acknowledgement error when executing an OB, moving the time forward so that
the start time for the OB is skipped, resume RUN mode after CiR. If, for example, a
start event for a cyclic interrupt OB occurs while the same OB is still being
executed following a previous call, the operating system calls OB80.
If OB80 has not been programmed, the CPU changes to the STOP mode.
You can disable or delay and re-enable the time error OB using SFCs 39 to 42.
Note
If OB80 is called twice during the same scan cycle due to the scan time being
exceeded, the CPU changes to the STOP mode. You can prevent this by calling
SFC43 "RE_TRIGR" at a suitable point in the program.
Local Data for the Time Error OB
The following table describes the temporary (TEMP) variables for the time error
OB. The variable names are the default names of OB80.
Variable Type Description
OB80_EV_CLASS BYTE Event class and identifiers: B#16#35
OB80_FLT_ID BYTE Error code: (possible values:
B#16#01, B#16#02, B#16#05, B#16#06, B#16#07,
B#16#08, B#16#09, B#16#0A, B#16#0B)
OB80_PRIORITY BYTE Priority class: OB 80 runs with priority class 26 in RUN
mode, and in the event of an overflow of the OB request
buffer with priority class 28
OB80_OB_NUMBR BYTE OB number (80)
OB80_RESERVED_1 BYTE Reserved
OB80_RESERVED_2 BYTE Reserved
OB80_ERROR_INFO WORD Error information: depending on error code
OB80_ERR_EV_CLASS BYTE Event class for the start event that caused the error
OB80_ERR_EV_NUM BYTE Event number for the start event that caused the error
OB80_OB_PRIORITY BYTE Error information: depending on error code
OB80_OB_NUM BYTE Error information: depending on error code
OB80_DATE_TIME DATE_AND_TIME DATE_AND_TIME of day when the OB was called