Indirection in Templates

You can create templates that point indirectly to a set of tags based on a simple parameter. This is very helpful when you have a large number of UDTs with the same type of tags that only differ in one parameter. For example, lets say you have 100 Motor UDTs that all have the same kind and number of tags. The only thing that is different is the Motor number.

If each tag inside the UDT has a tag path that looks like this:

Motors/Motor 1/AMPS

You can create a Template Parameter on the Custom Properties window called motorNumber, and use it to make indirect tag bindings. For every component within the template the tag path can be bound in such a way that the Custom property of motorNumber substitutes the motor number therefore resulting in a valid tag path that points to the desired motor.

Similar Topics ...