
4 Mode of Operation
4.4
FB “LHcs4x00_Diag82”
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
37
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
These addresses are required for the cyclic data exchange with the HCS.
At first, the input data: status bits, voltage readings (if available) and actual power
output values are read and stored in DB “LHcs4x00_Get”.
Then, the output data: control bits and power output setpoints are written from DB
“LHcs4x00_Put” to the HCS4x00.
Upon request, the acyclic data
record exchange “dsNum” with heating control
system “onHcs” is performed.
A positive edge at input “writeData” writes the values of data record “dsNum” from
“LHcs4x00_Put” into the HCS4x00 “onHcs”.
A positive edge at input “readData” reads the values of data record “dsNum” from
the HCS4x00 “onHcs” and stores them in the DB “LHcs4x00_Get”.
When errors occur, this is signaled with output “fault” in connection with error code
“state”.
4.4
FB “LHcs4x00_Diag82”
The FB “LHcs4x00_Diag82” decodes the diagnostic interrupts of the heating
control systems in case of an error and writes them into the diagnostic buffer
“dataGet.hcs[x].diag”.
It is called in diagnostic interrupt OB 82.
Figure 4-4
Table 4-46
Name
Data type
Description
Input
laddr
HW_IO
Hardware ID which triggers the diagnostic interrupt
(parameter “LADDR” of OB 82)
InOut
config
"LHcs4x00_typeConfig" Configuration data of the HCS4x00
dataPut
"LHcs4x00_typePut"
Pointer to data buffer with data to be written
dataGet
"LHcs4x00_typeGet"
Pointer to data buffer with data to be read