.MaxEU Dotfield
- Last UpdatedNov 07, 2016
- 1 minute read
The .MaxEU dotfield shows the maximum engineering unit value assigned to the specified tag from the Tagname Dictionary.
Category
Tags
Usage
Tag_name.MaxEU
Parameter
Tag_name
Any integer, real, or indirect analog tag.
Remarks
The .MaxEU dotfield is used to scale raw data values to an engineering unit range defined for the tag. It defines the upper limit of engineering unit range.
Data Type
Real for real tags and integer for integer tags (read-only).
Valid Values
Depends on the type of tag specified.
Example
A level gauge is read by a Programmable Logic Controller in the field. The level transmitter sends a signal that ranges between 4 and 20mA. The PLC converts this signal to an integer value between 0 and 4095. This value is assigned to the TankTwoLevel tag.
Displaying the raw value (between 0 and 4095) provides no useful data to the operator. It is necessary to scale this value to an appropriate engineering range.
To accomplish this, the Minimum engineering unit and Maximum engineering unit fields must be set up correctly. In our example, if the raw value of 0 (4mA from the field) translated to "0 Gallons" and the value of 4095 (20mA from the field) translated to "100 Gallons", the following set up would be required to show the correct value on the screen:
TankTwoLevel.MinRaw = 0;
TankTwoLevel.MaxRaw = 4095;
TankTwoLevel.MinEU = 0;
TankTwoLevel.MaxEU = 100;
With these settings, when the raw value in the field is 4095, the value shown to the operator is 100.
See Also
.EngUnits, .MinEU, .MinRaw, .MaxRaw, .RawValue