What is UTD data?
UTD (User Data Structure), which is equivalent to some basic data types into a packet, such as the speed temperature of a motor and other states into a packet to form a user data structure, you can use it as a basic data type complex data type, for example, when creating a DB data block can be inserted into it. What is UTD data?
UTD (User Data Structure), which is equivalent to some basic data types into a packet, such as the speed temperature of a motor and other states into a packet to form a user data structure, you can use it as a basic data type complex data type, for example, when creating a DB data block can be inserted into it.
1.0) Create UTD data
Introduction to the method:
On the left of the project tree, find "PLC Data Type", click "Add New Data Type", and name the UTD data block name, that is, add data type.
Build UTD data structures
UDT block naming method:
Naming method
2.0) Create a global data background block for storing UTD (User Data Structure) data:
Name the global block and modify the properties:
3.0) Add "10 motor data":
To add a data method:
In the static variable "Static" column to create the name "motor 1#" (of course, it can also be other names), in the "data type" drop-down and select "star-delta buck start".
How to view the data types such as "1# motor" of the DB data block:
4.0) Create a repeatable FB block:
Establish the FB block interface type, that is, the data type:
After we write the FB block program, we need to call the main program of OB1:
5.0) Let's call two FB blocks for the time being, and fill in the block pin interface:
6.0) After we fill in, we monitor "1#, 2# motor", as shown in the following figure:
2# Motor star status monitoring:
2# Motor triangular status monitoring:
7.0) Our actual IO output and program output monitoring:
The above briefly introduces the Siemens TIA Botu UTD data establishment method, which is more convenient and suitable for process processing, such as analog, PID, logic principle, etc. Due to the lack of time, the courseware will inevitably have imperfections or errors, and I will give more guidance to the majority of friends, and the younger brother is grateful here.