
5 How to Work with the Library
5.2 Integrating the library blocks in the project
HCS4x00Library
Entry ID: 109478117, V2.2.1, 09/2018
43
S
ie
m
e
n
s
A
G
2018
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
5.2
Integrating the library blocks in the project
5.2.1
Overview of the library blocks
The
LHcs4x00
library structure is displayed in
Global libraries contain the folders:
Types: when selected, the FCs / FBs contained here also copy integrated PLC
data types and sub-ordinate FCs / FBs
Master copies: the elements contained here (DBs and watch tables) need to be
integrated into the project tree by the user
The subordinate folder structure is the same for both folders (“Types” and “Master
copies”).
Block library
LHcs4x00
can be run on the SIMATIC S7-1500.
The blocks for communication and control are located in the “Control&Diag” folder.
They consist of
the types:
–
FB “LHcs4x00_Control” for communication and control
–
FB “LHcs4x00_Diag82” for the diagnostic interrupts of HCS4x00
–
FC “LHcs4x00_Diag86” for resetting the diagnostic interrupts during power
failure of HCS4x00
Master copies:
–
DB "LHcs4x00_Config" contains the configuration data
–
DB “LHcs4x00_Get” contains the read data
–
DB “LHcs4x00_Put” contains data to be written
–
DB “LHcs4x00_Tags” contains the supply parameters
–
PLC data type “LHcs4x00_typeControl” contains the supply parameters of
FB “LHcs4x00_Control”
–
Watch table “LHcs4x00_WatchTablePut” for controlling the HCS
–
Watch table “LHcs4x00_WatchTableGet” for reading out the HCS
Note
The PLC data types “LHcs4x00_typeConfig”, “LHcs4x00_typeGet” and
“LHcs4x00_typePut” are the joint interface of the instructions. They are located in
the “LHcs4x00_MainTypes” folder and are copied together with the PLC data
types integrated therein in folder “LHcs4x00_InternalTypes” when inserting the
instructions into the project.