3 General Programming
3.7 Libraries
Further information on the handling of libraries can be found in the following
example.
3.7.4
Versioning of a block
Example: Creating a type
The following example shows you how the basic functions of the libraries are used
with types.
Table 3-9: Creating a type
Step
1.
2.
3.
4.
Programming Guideline for S7-1200/1500
V1.2, Entry ID: 81318674
Create a new PLC data type with "Add new data type" and create some tags.
Later on this is the subordinate type.
Create a new function block with "Add new Block". This is the higher-level type.
Define an input tag of the data type you have created. The PLC data type is
therefore subordinate to the function block.
Drag the function block via drag & drop into the "Types" folder in the project
library.
Instruction
57