laitimes

Siemens TIA Portal UTD (User Data Structure) talk

author:Electrical guy

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.

Siemens TIA Portal UTD (User Data Structure) talk

Build UTD data structures

UDT block naming method:

Siemens TIA Portal UTD (User Data Structure) talk

Naming method

2.0) Create a global data background block for storing UTD (User Data Structure) data:

Siemens TIA Portal UTD (User Data Structure) talk

Name the global block and modify the properties:

Siemens TIA Portal UTD (User Data Structure) talk
Siemens TIA Portal UTD (User Data Structure) talk

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".

Siemens TIA Portal UTD (User Data Structure) talk

How to view the data types such as "1# motor" of the DB data block:

Siemens TIA Portal UTD (User Data Structure) talk

4.0) Create a repeatable FB block:

Siemens TIA Portal UTD (User Data Structure) talk

Establish the FB block interface type, that is, the data type:

Siemens TIA Portal UTD (User Data Structure) talk
Siemens TIA Portal UTD (User Data Structure) talk

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:

Siemens TIA Portal UTD (User Data Structure) talk
Siemens TIA Portal UTD (User Data Structure) talk
Siemens TIA Portal UTD (User Data Structure) talk
Siemens TIA Portal UTD (User Data Structure) talk

6.0) After we fill in, we monitor "1#, 2# motor", as shown in the following figure:

Siemens TIA Portal UTD (User Data Structure) talk

2# Motor star status monitoring:

Siemens TIA Portal UTD (User Data Structure) talk

2# Motor triangular status monitoring:

Siemens TIA Portal UTD (User Data Structure) talk

7.0) Our actual IO output and program output monitoring:

Siemens TIA Portal UTD (User Data Structure) talk

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.