Use UDT script
- Last UpdatedJul 09, 2026
- 1 minute read
As HMI applications grow in scale and complexity, there is an increasing need for reusable, standardized, and scalable automation logic. Traditionally, scripting in InTouch has been applied at the object or application level, which can lead to duplication of logic and inconsistencies across applications.
To address these challenges, scripting support is being introduced at the User-Defined Type (UDT) level. By enabling scripts to be defined directly as UDT members, HMI developers can:
-
Encapsulate behavior along with structure, ensuring consistent actions and logic across all UDT instances.
-
Promotes reuse and simplifies maintenance
-
Allows standards to travel with UDTs during import and export across applications.
In addition, modern scripting requirements demand support for open, powerful languages and flexible architecture. UDT scripting lays the foundation for:
-
using modern languages
-
processing complex data
-
supporting server-based execution models that align with web-based and distributed system architectures.
You can add scripts as members to UDTs. You can write the scripts in modern languages such as Python and C#. For installation steps of Python see Install Python. You can also import external libraries of .NET and Python so that you can use them in your scripts. For more information see Import external library.