How to use Enumerations to display numerical values as strings.

How-to ExamplesFeatureUNS → Tag Value Enumeration


Download the solution Tag Value Enumeration Example.dbsln. 

This solution demonstrates how to use the Enumerations feature.


Summary

This solution demonstrates how to use the Enumerations feature.


Technical Information

These dictionaries allow displays to display numerical values (e.g., 0, 1) as strings (e.g., 'On', 'Off'). 

You can configure enumerations in Unified Namespaces → Enumerations and apply them to Tags (using the Enumeration field for tags).

When showing the value of tags in the displays, Tag.Value shows the numeric value, Tag.ValueAsString shows the enumeration string connected with that value.


In this section...