EUHigh

<< Click to Display Table of Contents >>

 

EUHigh

Number Defines the highest value to attribute to the Value property, adjusting the scale to the value from the device before this attribution. Likewise, the inverse operation is performed before sending the value to the Driver, when writing. This conversion happens only when the EnableScaling property is set to True. Default value of this property is 1,000. Example:

Sub Tag_OnStartRunning()
  ' Adjusts the scale of temperature
  ' ranging from 0 to 255 at PLC, but it actually means
  ' 0 to 100 Celsius degrees
  EU = "Celsius degrees"
  EnableScaling = True
  DeviceHigh = 255
  DeviceLow = 0
  EUHigh = 100
  EULow = 0
End Sub

 

NOTE

Bit values (Bit00 to Bit31 properties) are not affected by adjustments in the scale, that is, they represent the bits from the value read by a device before conversion.

Was this page useful?