EnableScaling

<< Click to Display Table of Contents >>

 

EnableScaling

Boolean If this property is set to True, all values from the device receive a scale adjustment, according to EUHigh and EULow properties before setting it to the Value property. If this property is set to False, no scale adjustment is performed in neither way (writing and reading). Default value of this property is False. Example:

Sub Tag_OnStartRunning()
  ' Performs a scale adjustment of a
  ' Tag's temperature
  ' ranging from 0 to 255 on 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

Was this page useful?