Overview
The Units Conversion interface helps convert different metrics, units, and measurement systems. This functionality already includes conversion tables for both Metric to Imperial and Imperial to Metric, but you can extend and modify them according to your requirements.
This feature allows two or more Client Displays connected to the same server to see the values and units on their own computers according to the metric currently selected for that operator station.
On this page:
To configure a tag for unit conversion:
- Set the tag’s Units property. You can do this through the Unified Namespace / Tags table. You can also change it via CodeBehind or Scripts, by assigning a value to
Tag.<TagName>.Units
. - To apply unit conversions to your solution, assign the name of the desired conversion table to the
Client.Units
property. - All tags with units affected by the conversion table will have their values changed. To display the tag’s unit after conversion, use
Tag.<TagName>.DisplayUnits
.
Units Conversion Table Columns
Property | Description |
ID | Identifies each unit conversion entry uniquely. |
VersionID | Tracks the version of the unit conversion entry. |
BaseUnit | Represents the original unit of measurement before conversion. |
NewUnit | Represents the unit of measurement after conversion. |
Div | Indicates the division factor used in the conversion process. |
Add | Indicates the addition factor used in the conversion process. |
BaseName | Names the base unit. |
NewName | Names the new unit after conversion. |
DateCreated | Records the creation date and time of the unit conversion entry. |
DateModified | Records the last modification date and time of the unit conversion entry. |
MeasurementType | Specifies the type of measurement for the units involved, such as length or weight. |
In this section: