Ob86 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Organization Blocks

1.22

Rack Failure Organization Block (OB86)

Description
The operating system of the CPU calls OB86 whenever the failure of a central expansion rack (not with S7-300), a DP master system, or a station is detected in the distributed I/Os (PROFIBUS DP or PROFINET IO) (both when entering and outgoing event). If OB86 has not been programmed, the CPU changes to the STOP mode when this type of error is detected. You can disable or delay and re-enable OB86 using SFCs 39 to 42.

Local Data for the Rack Failure OB


The following table describes the temporary (TEMP) variables for the rack failure OB. The variable names are the default names of OB86.
Variable OB86_EV_CLASS Type BYTE Description Event class and identifiers: OB86_FLT_ID BYTE B#16#38: outgoing event B#16#39: incoming event

Error code: (possible values: B#16#C1, B#16#C2, B#16#C3, B#16#C4, B#16#C5, B#16#C6, B#16#C7, B#16#C8, B#16#CA, B#16#CB, B#16#CC, B#16#CD, B#16#CE)

OB86_PRIORITY OB86_OB_NUMBR OB86_RESERVED_1 OB86_RESERVED_2 OB86_MDL_ADDR OB86_RACKS_FLTD OB86_DATE_TIME

BYTE BYTE BYTE BYTE WORD Array [0 ..31] of BOOL DATE_AND_TIME

Priority class; can be assigned via STEP 7 (hardware configuration) OB number (86) Reserved Reserved Depends on the error code Depends on the error code DATE_AND_TIME of day when the OB was called

System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01

1-45

Organization Blocks

If you want to program OB86 dependent on the possible error codes, we recommend that you organize the local variables as follows:
Variable OB86_EV_CLASS OB86_FLT_ID OB86_PRIORITY OB86_OB_NUMBR OB86_RESERVED_1 OB86_RESERVED_2 OB86_MDL_ADDR OB86_Z23 OB86_DATE_TIME Type BYTE BYTE BYTE BYTE BYTE BYTE WORD DWORD DATE_AND_TIME

The following table show the event started OB86:


OB86_EV_CLASS OB86_FLT_ID B#16#39 B#16#C1 Meaning Expansion rack failure OB86_MDL_ADDR: Logical base address of the IM OB86_Z23: Contains one bit for each possible expansion rack: Each expansion rack that caused a call of OB86 is reported as having failed (the respective bits are set). Expansion racks that previously failed are no longer shown. B#16#38 B#16#C1 Bit 0: always 0 Bit 1: 1st expansion rack : Bit 21: 21st expansion rack Bit 22 to 29: always 0 Bit 30: Failure of at least one expansion rack in the SIMATIC S5 area Bit 31: always 0

Expansion rack operational again OB86_MDL_ADDR as for OB86_FLT_ID=B#16#C1. The expansion racks that are operational again are reported in OB86_Z23 (the respective bits are set).

B#16#38

B#16#C2

Expansion rack operational again (expansion rack failure with discrepancy between expected and actual configuration) OB86_MDL_ADDR: Logical base address of the IM OB86_Z23: Contains one bit for every possible expansion rack, see OB86_FLT_ID B#16#C1. Meaning of the set bit: in the affected expansion rack: Modules with an incorrect type ID exist Configured modules missing At least one module is defective.

1-46

System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01

Organization Blocks

OB86_EV_CLASS OB86_FLT_ID B#16#39 B#16#C3

Meaning Distributed I/O devices: failure of a DP master system Only incoming event causes the start of OB 86, with error code B#16#C3. An outgoing event starts OB 86 with error code B#16#C4 and event class B#16#38: The return of every DP slave station starts OB86 OB86_MDL_ADDR: Logical base address of the DP master OB86_Z23: DP master ID: Bit 0 to 7: Reserved Bit 8 to 15: DP master system ID Bit 16 to 31: Reserved

B#16#39/B#16#38 B#16#C4

Failure of a DP station OB86_MDL_ADDR: Logical base address of the DP master OB86_Z23: Address of the affected DP slave: Bit 0 to 7: No. of the DP station Bit 8 to 15: DP master system ID Bit 16 to 30: logical base address of an S7 slave or diagnostic address of a standard DP slave Bit 31: I/O identifier

B#16#39/B#16#38 B#16#C5 B#16#38 B#16#C6

Fault in a DP station OB86_MDL_ADDR and OB86_Z23 as for FLT_ID=B#16#C4 Expansion rack operational again, but still and error with module parameters. OB86_MDL_ADDR: Logical base address of the IM OB86_Z23: contains a bit for each possible expansion rack: Bit 0: always 0 Bit 1: 1st expansion rack : Bit 21: 21st expansion rack Bit 22 to 30: Reserved Bit 31: always 0 Modules with incorrect type identifiers exist Modules with missing or incorrect parameters exist.

Meaning when bit set (in expansion rack concerned):

B#16#38

B#16#C7

Return of a DP station, but error in module parameter assignment OB86_MDL_ADDR: Logical base address of the DP master Address of the DP slave affected: Bit 0 to 7: No. of the DP station Bit 8 to 15: DP master system ID Bit 16 to 30: Logical base address of the DP slave Bit 31: I/O identifier

System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01

1-47

Organization Blocks

OB86_EV_CLASS OB86_FLT_ID B#16#38 B#16#C8

Meaning Return of a DP station, however discrepancy in configured and actual configuration OB86_MDL_ADDR: Logical base address of the DP master OB86_Z23: Address of the affected DP slave: Bit 0 to 7: No. of the DP station Bit 8 to 15: DP master system ID Bit 16 to 30: Logical base address of the DP slave Bit 31: I/O identifier

B#16#39

B#16#CA

PROFINET IO system failure OB86_MDL_ADDR: logical base address of the IO controller OB86_Z23: Bit 0 to 10: 0 (station number) Bit 11 to 14: IO system ID Bit 15: 1 Bit 16 to 31: 0

B#16#39/38

B#16#CB

PROFINET IO station failure/station return OB86_RESERVED_1: B#16#C4: no other station is faulty B#16#CF: other stations have failed/are faulty

OB86_MDL_ADDR: logical base address of the IO controller OB86_Z23: Bit 0 to 10: Station number Bit 11 to 14: IO system ID Bit 15: 1 Bit 16 to 30: Logical base address of the station Bit 31: I/O identifier

B#16#39/38

B#16#CC

PROFINET IO station faulty/station fault corrected OB86_RESERVED_1: B#16#C4: no other station is faulty B#16#CF: other stations have failed/are faulty

OB86_MDL_ADDR: logical base address of the IO controller OB86_Z23: Bit 0 to 10: Station number Bit 11 to 14: IO system ID Bit 15: 1 Bit 16 to 30: Logical base address of the station Bit 31: I/O identifier

B#16#38

B#16#CD

PROFINET IO station return, actual configuration does not march expected configuration OB86_MDL_ADDR: logical base address of the IO controller OB86_Z23: Bit 0 to 10: Station number Bit 11 to 14: IO system ID Bit 15: 1 Bit 16 to 30: Logical base address of the station Bit 31: I/O identifier

1-48

System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01

Organization Blocks

OB86_EV_CLASS OB86_FLT_ID B#16#38 B#16#CE

Meaning PROFINET IO station return, error in module configuration parameters OB86_MDL_ADDR: logical base address of the IO controller OB86_Z23: Bit 0 to 10: Device number Bit 11 to 14: IO system ID Bit 15: 1 Bit 16 to 30: Logical base address of the station Bit 31: I/O identifier

Note If you are using a DPV1 capable CPU you can obtain additional information on the interrupt with the help of SFB54 "RALRM" which exceeds the start information of the OB. This also applies when you operate the DP master in S7 compatible mode.

System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01

1-49

You might also like