
4 Mode of Operation
4.1 General overview
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
19
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
4
Mode of Operation
4.1
General overview
shows the time sequence of the block calls in the control part of the
application project.
Figure 4-1
User program
Organization
blocks
Data blocks
LHcs4x00
_Control
Main
[OB 1]
Diagnostic
Error
Interrupt
[OB 82]
RackOr
Station
Failure
[OB 86]
LHcs4x00
_Diag86
LHcs4x00
_Diag82
LHcs4x00
_Get
LHcs4x00
_Put
LHcs4x00
_Config
The functionality of the
LHcs4x00
(V2.2) block library divides the following three
blocks between:
FB “LHcs4x00_Control” for communication and control of HCS4x00
FB “LHcs4x00_Diag82” evaluates the diagnostic interrupts of the HCS4x00
FC “LHcs4x00_Diag86” resets the diagnostic interrupts (for example, during an
HCS4x00 station failure)
All of the instructions access the following data blocks:
"LHcs4x00_Config" includes the configuration data for the HCS4x00
“LHcs4x00_Put” contains data to be written for the HCS4x00
“LHcs4x00_Get” contains data read from the HCS4x00
Note
All blocks are provided with the property attribute “optimized block access”. In
case of any changes, make sure that all blocks correspond to the same block
access (
chapter 2.6.5: Parameter transfer between blocks with optimized
and non-optimized access).