.EngUnits Dotfield
- Last UpdatedJun 02, 2021
- 1 minute read
The .EngUnits dotfield shows the text value assigned to an analog tag with the Eng Units property. The .EngUnits dotfield shows the engineering unit as a text value.
Note: Values written to this field are not retentive.
Category
Tags
Usage
Tag_name.EngUnits
Parameter
Tag_name
Any integer, real, or indirect analog tag.
Data Type
Message (read/write).
Remarks
The .EngUnits dotfield does not affect the scale, conversion, or format of the actual data associated with the tag.
Valid Values
Any string containing 0 to 31 characters.
Example
The following script calls a Fahrenheit temperature conversion function if the tag’s engineering unit is Celsius.
IF Temperature.EngUnits == "Celsius" THEN
CALL TempFConvert(Temperature);
ENDIF;
See Also
.MinEU, .MaxEU, .MinRaw, .MaxRaw, .RawValue