
4-8
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
4.5 Creating User-Defined Data Types (UDTs)
User-defined data types are data structures that you create yourself and save
as blocks. Once defined, you can use them under their absolute or symbolic
block names, throughout the entire user program. You can use UDTs as
follows:
S Like elementary or complex data types as the data type in the declaration
of logic blocks (FCs, FBs, OBs) or in data blocks (DBs).
S As templates for creating data blocks with the same data structure.
Figure 4-5 shows the basic procedure for creating a user data type:
Create a block for a UDT in the
SIMATIC Manager or in the Editor
Edit the block properties
Save the block
Edit the declaration table
LAD Editor
Figure 4-5 Creating a User Data Type
After creating or opening a UDT in the SIMATIC Manager or the
incremental editor, a declaration table is displayed in which you declare the
structure of the data type.
Overview
Procedure
Editing a
Declaration Table
Creating Data Blocks and User-Defined Data Types
Kommentare zu diesen Handbüchern