
8 Operating the Application
8.1 Operating the HCS4x00
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
71
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
8.1.2
Diagnosing channel errors
Occurring errors are displayed in DB “LHcs4x00_Get” in “hcs[x].diag” (see chapter
). The cannel diagnostic is shown on the example of controlling a power
output without connected consumer:
Table 8-3
No.
Action
Remark
1.
Open the “
LHcs4x00_WatchTablePut
”
watch table in the project tree.
2. Set the
“
LHcs4x00_Tags".control.heatingOn
bit for switching on the heating.
3.
In the “
LHcs4x00_WatchTableGet”
watch table the faulty channels with
“
errorCode”
error ID (here: 16#5107 =
channel error: heating element defect)
are displayed.
4. Then reset the
“
LHcs4x00_Tags".control.heatingOn
bit for switching the heating off.
8.1.3
Assigning the “Channels without diagnostic interrupt” (DS 152)
To prevent unconnected power outputs to be diagnosed as defective heating
elements (see chapter
) when switching on the heating mode, proceed as
follows:
Table 8-4
No.
Action
Remark
1.
Open the “
LHcs4x00_WatchTablePut
”
watch table in the project tree.
2. Select the output channels that are
not to report a diagnosis, and write
“TRUE” to it in DB “
LHcs4x00_Put”
at
“
hcs[1].datasets.ds152.pom[1]”
.
3.
Write “152” to tag
“
LHcs4x00_Tags".control.dsNum
and
set bit
“
LHcs4x00_Tags".control.writeData
.
Note
4. Then reset bit
“
LHcs4x00_Tags".control.writeData
.
5. You can verify the adopted settings
via reading data record 152 in DB
“LHcs4x00_Get“
.
To do this, set the
"LHcs4x00_Tags.”control.readData
bit in the
“LHcs4x00_WatchTableGet“
watch table and then back again
(