
4 Mode of Operation
4.3
FB “LHcs4x00_Control”
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
35
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
Table 4-45
Name
Data type
Description
Input
firstRun
Bool
First cycle after restarting the CPU (e. g.
parameter “Initial_Call” from the calling OB1)
readData
Bool
Read request for data record “dsNum” of HCS
“onHcs” (for positive edge)
writeData
Bool
Write request for data record “dsNum” of HCS
“onHcs” (for positive edge)
dsNum
UInt
Data record number (see chapter
heatingOn
Bool
Switching all configured heaters on/off
(FALSE: off/ TRUE: on)
prodStandby
Bool
Selecting the operating mode for all configured
heaters
(FALSE: "Production" / TRUE: “Standby”)
voltageComp
Bool
Mains voltage compensation for all configured
HCS4x00: FALSE = off / TRUE = on (available
when using the PM4000 U/I, POM4220 Highend
or POM4320)
onHcs
Int
Heater to be addressed for data record transfer
(Array element "hcs[onHcs]" see chapters
Output
readBusy
Bool
Job “read data record” is active
writeBusy
Bool
Job “write data record” is active
fault
Bool
Error on an HCS
(entry in the diagnostic structure
“dataGet.hcs[x].diag”)
state
Word
Returned block value:
1 = i
nitialization error (HW ID “hwIoDevice”
unknown)
2 = data record “dsNum” cannot be written to
3 = heater “onHCS” non-existent
4 = data record “dsNum” not readable
5 = error when reading or writing data record (see
“retValControl”)
6 = internal buffer overflow
7 = PM not available or data record is not
supported by PM
8 = impossible to write data record 152 (POM not
available)
9 = error while executing the instruction
"Serialize" or "Deserialize" (see "retValControl")
10 = error during transfer of data record 2 or 203
(POM4220 Highend not available)
retValControl
DWord
Return value of the internal instructions
"
",
" or
" (see parameters "RET_VAL” each)
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