<< Click to Display Table of Contents >>
DeviceLow |
This property defines the lowest value reached by this OPC Tag in the device. This property is used to perform a scale adjustment of the value from a device before setting it to the Value property. Likewise, at the moment of a writing the inverse operation is performed before sending the value to the Driver. This conversion only occurs when the EnableScaling property is set to True. Default value of this property is 0 (zero). 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
NOTE |
Bit values, the Bit00 to Bit31 properties, are not affected by adjustments in the scale, that is, they represent the bits of the value read from a device before conversion. |