Concept of UDT in Step7

There are some very elementary data types in PLCs: BOOLEAN, INTEGER, REAL etc. Each one represents a single item of data scoped and displayed in a predefined manner.

You could also regard something like a timer as being a complex data type: it is composed of several simple data types linked for a particular purpose. For example, there will be two or three BOOLs and two TIMEs (present and remaining).

A UDT (in any PLC - not just STEP7) gives you the opportunity to define a complex data type to represent a type of object relevant to your plant, process or tasks. You can group together any combination of simple data types to creat this User Defined Datatype.

In the same way as a timer is an object, and you will use many different timers in a program, each sharing the characteristics of that object, the same happens with a UDT. For example you could create a UDT to represent a motor and all its appropriate data. Let's call that UDT "Motor". When you come to use this UDT you create variables with their own names (e.g. BigPump_01, Conveyor_Mtr_25) and declare their data type to be "Motor". Both of these examples will then have the same component elements as the parent UDT. It's like a template for all motors in your system. Of course you can create as many different UDTs as you need. And you can embed UDTs within UDTs. You could have a UDT to represent a conveyor. This might include BOOLs for switches etc, plus a few existing UDT declarations representing motors.
 

Similar Topics

Trying to identify the Modbus RTU registers that are in use in the Function block programming in the PLC program. I have a Kohler DEC 550...
Replies
0
Views
169
I'm just starting to learn about industrial automation processes, I want to know how a weight feeder unit works which consists of a load cell and...
Replies
14
Views
1,091
We plane to upgrade quantum modicon 140CPU43412A but for upgrade executed , the version must be above or equal v04. When inspect the cpu no v04...
Replies
0
Views
538
Hi Guys, i would need dbconv.exe from Concept 2.2 to convert my plc program to the new Concept 2.6. Unfortunately, I couldn´t find my Concept 2.2...
Replies
3
Views
1,507
Concept of the system (Sketch of system attached) **I am blessed to be a member of this community, thanks in advance** System is a chain...
Replies
8
Views
3,026
Back
Top Bottom