To create a UDT instance, do the following:
- Right click on the Tags folder > New Tag > New Folder. Enter a name (i.e., Motors) for the folder and click OK.
- In the Tag Browser, right-click on your Motors folder and select New Tag > Data Type Instance > Motor to create a new instance.
- The Tag Editor window will open and you'll see a New Instance in the Type Structure area. Next to the Name property, assign the new instance a name, Motor 1.
- Enter the MotorNumber value for the Parameters property by clicking on the Edit icon. The Parameters window will open.
- Enter a value for the MotorNumber that is used in the configuration of the UDT Motor. In this example, enter '1' and click Commit. (Note: Id you want to cancel the entry and go back to the previous window, click Revert.)
- Click OK to create the Motor 1 instance.
- From the Tag Browser, expand Motor 1 to verify that the Tags are working correctly.
- To verify that the OPC Item Path for the MotorNumber parameter was translated correctly, expand each of the Tags: Amps and HOA. You can see that MotorNumber (i.e., Motor 1) is displayed correctly.
- Repeat Steps 2 through 6 for each Motor you want to create. Each instance name must be unique. (Your next motor could be Motor 2.) Expand the Motors folder to see if Motor 2 was created and the Amps and HOA Tags are working.
- From the Tag Browser, you would go to Tags > Data Types Motors > Motor 2.
- Right-click on Motor 2 and select Edit tag to open the Tag Editor.
- Under Type Structure, select the HOA Tag. The circles to the riht of the property names are the override buttons. You'll notice that none of the properties have been overriden, otherwise they would be green.
- Let's override the OPC Item Path for the HOA. Click the binding icon and select Browse OPC.
- In this example, browse the OPC and select another HOA Tag, and click Commit.
- You'll notice the circle changed to green thus overriding the OPC Item Path for the HOA Tag. Click OK.
- Go to the Tag Browser, expand the HOA Tag for Motor 2, and see the updated OPC Item Path.
- To go back to the original configuration, unclick the green circle next to the OPC Item Path.
It's important to note that if you make a change to the definition on a field that was overwritten, it will not update on that particular instance. That instance is locked in at that override, unless you go back to your instance and remove the override by clicking the green circle.