
4 Mode of Operation
4.3
FB “LHcs4x00_Control”
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
36
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
4.3.1
Program workflow
Figure 4-3
write I/O to
periphery
read I/O from
periphery
Start/Stop
firstRun?
yes
no
get I/O addresses
CIM
PM
POMs
status bits
voltage
PM inputs
power output actual value
control bits
PM outputs
power output setpoints
write datasets
(dsNum)
ds100: field type 1
ds150: production field values
ds151: standby field values
ds152: channels without diagnostic alarm
ds160: control of internal fans
ds190: reset HCS
ds002: configuration data for POM4220 Highend
ds101..ds132: field type 2
read datasets
(dsNum)
ds100: field type 1
ds150: production field values
ds151: standby field values
ds152: channels without diagnostic alarm
ds160: control of internal fans
ds200: measured values
ds201: versions
ds202: measured values of PM4000 U/I
ds002: configuration data of POM4220 Highend
ds203: measured values of POM4220 Highend
ds101..ds132: field type 2
search for
errors
general fault (CIM)
general fault (POM)
channel fault (POM)
PN or DP ?
DP
PN
config.hcs[x].ioDataIn.hwIoDevice
Delete diag buffer
FC “LHcs4x00_Diag86”
When first executing the FB "LHcs4x00_Control”, possibly existing diagnostic
entries are deleted by means of FC “LHcs4x00_Diag86” (see chapter
The communication type (PROFINET or PROFIBUS) is detected via the hardware
ID of the HCS.
Subsequently, the input and output address areas of the configured HCS, including
modules (CIM, PM and POM), are read out.