AllowRead

<< Click to Display Table of Contents >>

 

AllowRead

Boolean Defines whether this OPC Tag must be read or not by the OPC Driver. If this property is set to True, the Driver automatically updates Value, Bits (from Bit00 to Bit31), and RawValue properties of this object in time spans. Otherwise, this OPC Tag is not read. Default value of this property is True. Example:

Sub CommandButton1_Click()
  ' Stops a Tag reading
  Set obj = Application.GetObject("Driver1.tag")
  obj.AllowRead = False
End Sub

Was this page useful?