Technical data

Table Of Contents
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
1-34
A5E00709327-01
1.18 Diagnostic Interrupt Organization Block (OB82)
Description
If a module with diagnostic capability for which you have enabled the diagnostic
interrupt detects an error, it outputs a request for a diagnostic interrupt to the CPU
(when entering and outgoing event). The operating system then calls OB82.
The local variables of OB82 contain the logical base address as well as four bytes
of diagnostic data of the defective module (see the following table).
If OB82 has not been programmed, the CPU changes to the STOP mode.
You can disable or delay and re-enable the diagnostic interrupt OB using SFCs 39
to 42.
Local Data for Diagnostic Interrupt OB
The following table describes the temporary (TEMP) variables for the diagnostic
interrupt OB. The variable names are the default names of OB82.
Variable Type Description
OB82_EV_CLASS BYTE Event class and identifiers:
B#16#38: outgoing event
B#16#39: incoming event
OB82_FLT_ID BYTE Error code (B#16#42)
OB82_PRIORITY BYTE Priority class; can be assigned via STEP 7
(hardware configuration)
OB82_OB_NUMBR BYTE OB number (82)
OB82_RESERVED_1 BYTE Reserved
OB82_IO_FLAG BYTE Input module: B#16#54
Output module: B#16#55
OB82_MDL_ADDR WORD Logical base address of the module where the fault
occurred
OB82_MDL_DEFECT BOOL Module is defective
OB82_INT_FAULT BOOL Internal fault
OB82_EXT_FAULT BOOL External fault
OB82_PNT_INFO BOOL Channel fault
OB82_EXT_VOLTAGE BOOL External voltage failed
OB82_FLD_CONNCTR BOOL Front panel connector not plugged in
OB82_NO_CONFIG BOOL Module is not configured
OB82_CONFIG_ERR BOOL Incorrect parameters on module
OB82_MDL_TYPE BYTE Bit 0 to 3: Module class
Bit 4: Channel information exists
Bit 5: User information exists
Bit 6: Diagnostic interrupt from substitute
Bit 7: Reserve
OB82_SUB_MDL_ERR BOOL Submodule is missing or has an error
OB82_COMM_FAULT BOOL Communication problem