Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Siemens HMI Training – Using UDTs with Faceplates
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Siemens HMI Training – Using UDTs with Faceplates

Siemens HMI Training – Using UDTs with Faceplates

In this article, we will show how using UDTs with faceplates can even provide more flexibility in WinCC and ease to your PLC project.

Last updated: September 14, 2023 11:25 am
Mahmoud Salama
PLC Tutorials
No Comments
Share
11 Min Read
SHARE

In the previous article, we talked about faceplates and we showed how to create, edit, and connect our faceplate to the PLC project. We showed how using faceplates in your HMI project can make it very easy and fast to design visualization for multiple similar systems. In this article, we will show how using UDTs with faceplates can even provide more flexibility and ease to your PLC project.

Contents
Using faceplates with too many instancesReminder of UDTs (User-Defined Data Types)Implement UDTs with faceplatesEdit the UDT in the global libraryConclusion

Contents:

  • Using faceplates with too many instances.
  • Reminder of UDTs.
  • Implement UDTs with faceplates
  • Edit the UDT in the global library
  • Conclusions.

Using faceplates with too many instances

In previous articles, we showed how faceplates can be very useful in minimizing the time and effort you would consume to design and create a visualization of multiple numbers of the same system.

Faceplates are designed to act as a standardized visualization that I can call and apply when I have multiple numbers of the same system. each time I call and use a faceplate it is called an instance, and I can use as many instances as I would like in my project.

Each time I use a faceplate instance, I have to connect this instance to the corresponding system that is used. For example, we created a faceplate for a tank system, and each time we use an instance for a tank we have to connect the faceplate interface to the tank in use. See picture 1.

Using faceplates with too many instances

Picture 1. Faceplate instance for Tank_2

As you can see, with Tank_2 we provided the tags of that tank and if we used another instance for another tank, we will provide the tags for that tank also. This made the visualization part very simple and fast as I just have to drag and drop a new instance each time I have a new tank.

However, if my system has a large number of tanks, this will mean that I have to define an equal number of tags for these tanks and I have to connect each faceplate with the tags of its tank. This is where UDTs can be very helpful and useful.

Reminder of UDTs (User-Defined Data Types)

We showed before in previous articles what UDTs are, and how we can create a UDT in our project. We created a UDT for our tank system that has all the needed and related tags to a tank.

Whenever I have a tank system in my PLC project, I would just define a new Tank tag and make it of the UDT type we created. See picture 2.

What is faceplate in TIA Portal

picture 2. Tank UDT that we define.

Implement UDTs with faceplates

To make any change to our faceplate, we have to open a new version of that faceplate, to do so, just right-click the faceplate and press edit faceplate. See picture 3.

UDT with Faceplate

picture 3. Edit the faceplate.

To implement UDTs in our faceplate, we have to create the interface of our faceplate using the UDT instead of the individual tags that we used before.

As you see from the previous picture. To do that we will add a new property, name it Tank, and give the data type of the Tank UDT we created. See picture 4.

What is a faceplate in WinCC

picture 4. Add a new property of data type Tank.

The first thing you will notice is that you can’t find the data type Tank in the current list. This is because the Tank UDT we created is only defined for our PLC project and not for the HMI project. See picture 5.

HMI Siemens Tia Portal

picture 5. UDT is only defined for the PLC.

To be able to use the UDT type in our HMI project, we have to make the UDT a global type that will be defined globally and can be used within the HMI project as well.

To do so, we just drag and drop our UDT into the TYPES folder in the project library. See picture 6.

PLC and HMI Development with Siemens TIA Portal

picture 6. Drag and drop the UDT in the project library.

Once we do that, an add type window will appear, because our faceplate name is Tank, we can’t give the UDT the Tank name, so we will give it a different name, see picture 7.

HMI and Faceplates

picture 7. Choose a proper name for the UDT type.

Once you press OK the UDT tank will be a global type and we can use it in our faceplate. See picture 8.

HMI Faceplate Programming

picture 8. Global UDT type.

As you can see, the UDT is now a type in your project with a version V0.0.1 and now we can use it with our faceplate. See picture 9.

PLC Faceplate project

picture 9. We now can find the UDT.

Now, we can find and select the UDT data type for the new property that we created for our faceplate.

Once it is added you will find all the internal tags of the UDT already defined within this Tank property. See picture 10.

Faceplate wincc tia portal

picture 10. Internal tags of the Tank UDT.

We now need to connect our faceplate properties to the internal tags of the UDT property. But first, let’s delete the old properties that we created before, as we don’t need them now. See picture 11.

Examples for HMI Faceplates

picture 11. Delete old properties of the faceplate.

Now, we connect the faceplate elements properties to our interface as we did before, by drag and drop.

For example, the set point I/O field process value is connected to the Tank UDT set point tag by dragging and dropping as we showed before. See picture 12.

WinCC faceplate Tutorial pdf

picture 12. Set point process value.

For the Empty Tank button, don’t forget to an event for the button, while the button is pressed, the empty tank tag inside the PLC should be set to 1. See picture 13.

Faceplates and Function Blocks for the Visualization

picture 13. Empty tank button event configuration.

After you connect all faceplate properties, we need to release the faceplate version to apply the changes we made.

Also don’t forget to update instances in the project as well. See pictures 14 and 15.

Wincc Faceplate

picture 14. Release the faceplate version.

Siemens faceplate

picture 15. Update instances in the project.

Now that we implemented the UDT within our faceplate, any faceplate instance will have only one interface that we need to connect to our PLC. See picture 16.

Siemens faceplate hmi

picture 16. Any faceplate instance has only one interface tag.

For tank 1 visualization, we will connect the faceplate instance 1 to the UDT Tank_1. See picture 17.

HMI Faceplates UDT implementation

picture 17. Tank _1 faceplate instance.

The whole connection between your visualization and your PLC is now done with one tag in one step. See picture 18.

faceplate tutorial

picture 18. Connection between faceplate and PLC with 1 tag.

Now, I can add as many faceplate instances as I want and it will be just as easily. See picture 19.

Faceplate in WinCC

Picture 19. Adding multiple faceplate instances.

Edit the UDT in the global library

You should know that any change you need to make to your UDT will be considered as a new version in work, as now your UDT has become a global type and not just defined for the PLC project.

To do so, you just right-click on your UDT type and press edit type. see picture 20.

Introduction to FACEPLATE

picture 20. Edit the UDT type.

After you press edit type, a new version in the work of the UDT will open, and you can add or delete internal tags.

Once you finish your editing you will need to release the type version to apply the changes you made. See picture 21.

PLC and Faceplates

picture 21. Release the UDT new version.

You will need to reselect the UDT version in your faceplate properties to have the new changes applied to your faceplate property. See picture 22.

Faceplate plc hmi tutorials

Picture 22. Reselect the UDT type.

Download: Faceplate with UDT

Conclusion

  • Using UDTs with faceplates will make it even easier and faster to create visualization for your PLC project.
  • To be able to use UDTs with faceplates, we have to define the UDT globally in our project.
  • Any changes made to the faceplate or the UDT type will require editing and releasing a new version of that type.

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • PLC PID Controller Output Types
  • Static and Temp Variables in PLC
  • Power Supply Sizing for Systems
  • How to Read the PLC Datasheet?
  • Update the Firmware Version of PLC
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

PLC based Door Open and Closing System
How to Connect PLC with SCADA System via OPC UA?
VFD Commissioning and Testing Procedure (Variable Frequency Drive)
Move, Move Bit, Move Digit – Examples of Omron PLC Programs
Quiz: Identifying I/O Examples in PLC Systems
PLC Programming using Level Switches
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Download Free HMI software – CODESYS
Ladder Logic for Control of Double-acting Pneumatic Cylinder
Check Block Consistency Tools in Simatic Manager
PLC Interview Questions and Answers
PLC Programmer Salary and Future Career Scope
How to Choose the Right Industrial Automation Solution?
Factory I/O PLC Automation Training Course (Free)
Ladder Diagram Example using Memory Bits and Set Coils

Keep Learning

PLC Conversion Program

How to use Converters in PLC

PLC Program using Counters

PLC Counters Program

Simatic S7 PLC Backup Steps

How to take Backup from Siemens S7-300 PLC?

Single-Acting Cylinder Control Operation using Proximity Sensor

Single-Acting Cylinder Control using Proximity Sensor

Modbus Poll and Modbus Slave

How to Use Modbus Poll and Modbus Slave Software?

Profibus DP Master

DP Master System Configuration in PLC

What is an instruction list language?

Structured Text vs. Instruction List for PLC Programming

How to do Force in GE PLC Proficy Machine Edition?

Learn More

Difference between Feedback, Feedforward, and Cascade Control

Difference between Feedback, Feedforward, and Cascade Control?

Thermocouple Reference Junction

Thermocouple Working Principle

Industrial Automation and Control Systems (IACS)

Industrial Automation and Control Systems (IACS)

Basic DC Power Supply Circuit

Basic DC Power Supply Circuit

Illumination Objective Questions

Illumination Objective Questions

Which instrument is faulty

Which Instrument is Faulty? Transmitter, Recorder, or Controller

Instrument Heat Trace

Electrical Heat Tracing

DPDT switch

Switch Types and Common Terminology

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?