
4 Mode of Operation
4.4
FB “LHcs4x00_Diag82”
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
38
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
4.4.1
Program workflow
Figure 4-5
CIM faults
exit
conditions
Start/Stop
get fault
positions
AINFO
POM faults
RALRM
(MODE:=2)
PROFINET or PROFIBUS?
AlarmSpecifier
SlotNum & SubSlotNum
ChannelNumFault
FaultNum
Start/Stop
PM fault
Calculate actual
channel number
The diagnostic interrupt OB 82 is called for each coming and going interrupt of a
diagnostics-capable I/O module.
When calling FB “LHcs4x00_Diag82”, the “RALRM” instruction in “MODE” = 2 is
called for receiving the “AINFO” interrupt information.
Depending on the communication type PROFINET or PROFIBUS the following
interrupt information is read out of the “AINFO” array:
Identifier for the “AlarmSpecifier” interrupt type
Slot number “SlotNum” and sub-module slot “SubSlotNum” of the component
triggering the interrupt
Channel number of the “ChannelNumFault” component which triggers the
interrupt
“FaultNum” error type
The error position is then detected in the hardware configuration.