AllowRead

<< Click to Display Table of Contents >>

 

AllowRead

Boolean Configure this property to define whether this Tag is read by the I/O Driver or not. If this property is set to True, the Driver automatically updates Value, Bits (from Bit00 to Bit31), and RawValue properties, in time spans defined by the Scan property. Otherwise, this I/O Tag is not read. Default value of this property is True. Example:

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

Was this page useful?