Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Employees

Sign In

Skip to end of metadata
Go to start of metadata



What is a UDT?

UDTs (User Defined Types) are extremely important in Ignition. UDTs, also referred to as Complex Tags, offer the ability to leverage object-oriented data design principles in Ignition. Using UDTs, you can dramatically reduce the amount of work necessary to create robust systems by essentially creating parameterized "data templates".

By defining UDTs and using these essentially “data templates”, you can generate Tag instances to rapidly build complex screens. A change to the type definition is then inherited by all instances, drastically saving time when making routine changes. 

The UDT data types are fully supported by Vision Templates, which means you can configure templates for your custom data types and take advantage of drag-and-drop binding to rapidly build complex screens.

Primary UDT Features

Object Oriented
Use small or large groups of Tags to create a single object. Create objects that match your real world devices or the existing structures in your PLCs.

Central Definition
Once you define your data type, you can then create instances of it. If at a later time you want to change some aspect of the type, you can simply edit the type definition, and all instances of it are automatically updated.

Parameterized Settings
Define custom parameters on your data type, and then reference them inside some or all of your member Tags. When it comes time to create instances, you can simply modify their parameter values in order to change where the underlying data comes from.

Extendable 
Data types can inherit from other data types in order to add additional members or override settings. Instances can also override settings, allowing for flexibility when dealing with irregularities and corner cases.


On this page ...


IULocgo


Understanding UDTs



UDT Terminology

Many terms are frequently used when discussing complex Tags:

UDT 
User Defined Type - the definition of the data type is its structure, Tags, attributes, and settings.

Instances
Instances are running copies of a data type with specific data for all members. Instances are linked to their parent types and are reloaded when their parent type changes. Besides specifically overridden settings, all settings are inherited from the type definition.

Parameters
Parameters are custom properties on data types that you can use inside the type or instance definition to create parameterized data templates. For example, if a data type consists of three OPC Tags that only differ by a number in the path, you can use a parameter for the "base address", allowing instances to be created with only one setting.

Members
Members are the Tags inside of a data type or instance.


Defining UDTs

You can save time and quickly generate data types from existing structures. This is particularly useful, for example, when data types are already defined in the PLC. Creating a new data type is very similar to creating standard Tags. You can open the Tag Browser and drag multiple Tags or folders into the Data Types folder, or you can create them manually by right-clicking and selecting New Tag.

Creating from OPC

If you have data types defined in your PLC (or OPC server), you can take a short-cut to the conversion step outlined above by dragging the Tags (or the folder for the type) from the OPC Browser directly onto the Data Types folder, and selecting Create Type from the subsequent dialog.


Creating Instances of UDTs

Creating instances of complex types is virtually identical to creating other types of Tags using the New Tag menu. Unlike standard Tags, it is likely that you'll have to modify attribute values or override certain member properties in order to make the instance unique. The process for doing this is the same to that used when creating data types. Once created, instances run very much like standard Tags. If the parent data type is updated, the instance will automatically receive the updates and refresh.

IULocgo


Creating UDT Definitions


Folders for UDT Instances

It's always a good idea to create a folders to keep your Tags organized. So you may want to create a folder for your UDT instances whether you create UDT instances manually or use the Multi-Instance Wizard. 

Creating Instances Manually

You create individual instances of a UDT in exactly the same way as a basic Tag. Right-click and select New Tag, then the type of UDT you want to create.



Using the Multi-Instance Wizard

The Multi-Instance Wizard provides a powerful but simple mechanism for rapidly generating many instances of a data type, by specifying patterns for parameters. To get started, simply right-click a Tag in the Tag Browser, then select Multi-instance Wizard from the menu. 



The Instance Creation Wizard window will be displayed. Once you select a data type to create from the dropdown list, you will see the parameters populate in the table, where you can specify values for them. The size of the parameter patterns dictate how many Tags get created, or if only single values are specified, you can choose to create multiple copies of the same configuration. You can even Preview the pattern to verify your values.  

IULocgo


Manually Creating UDT Instances

IULocgo


UDT Multi-Instance Wizard

     




Related Topics ...
In This Section ...



  • No labels