OB86.pdf
-
Upload
mancamiaicuru -
Category
Documents
-
view
276 -
download
14
description
Transcript of OB86.pdf
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 1-45
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 Type Description
OB86_EV_CLASS BYTE Event class and identifiers:
B#16#38: outgoing event
B#16#39: incoming event
OB86_FLT_ID BYTE 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 BYTE Priority class; can be assigned via STEP 7 (hardware
configuration)
OB86_OB_NUMBR BYTE OB number (86)
OB86_RESERVED_1 BYTE Reserved
OB86_RESERVED_2 BYTE Reserved
OB86_MDL_ADDR WORD Depends on the error code
OB86_RACKS_FLTD Array [0 ..31]
of BOOL
Depends on the error code
OB86_DATE_TIME DATE_AND_TIME DATE_AND_TIME of day when the OB was called
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
1-46 A5E00709327-01
If you want to program OB86 dependent on the possible error codes, we
recommend that you organize the local variables as follows:
Variable Type
OB86_EV_CLASS BYTE
OB86_FLT_ID BYTE
OB86_PRIORITY BYTE
OB86_OB_NUMBR BYTE
OB86_RESERVED_1 BYTE
OB86_RESERVED_2 BYTE
OB86_MDL_ADDR WORD
OB86_Z23 DWORD
OB86_DATE_TIME DATE_AND_TIME
The following table show the event started OB86:
OB86_EV_CLASS OB86_FLT_ID Meaning
B#16#39 B#16#C1 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.
- 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
B#16#38 B#16#C1 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.
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 1-47
OB86_EV_CLASS OB86_FLT_ID Meaning
B#16#39 B#16#C3 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 Fault in a DP station
OB86_MDL_ADDR and OB86_Z23 as for FLT_ID=B#16#C4
B#16#38 B#16#C6 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
Meaning when bit set (in expansion rack concerned):
- Modules with incorrect type identifiers exist
- Modules with missing or incorrect parameters exist.
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
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
1-48 A5E00709327-01
OB86_EV_CLASS OB86_FLT_ID Meaning
B#16#38 B#16#C8 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
Organization Blocks
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 1-49
OB86_EV_CLASS OB86_FLT_ID Meaning
B#16#38 B#16#CE 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.