AllowRead

<< Click to Display Table of Contents >>

 

AllowRead

Boolean Configure this property to define whether this I/O Tag is read by the I/O Driver or not. If this property is set to True, the I/O 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. The next script contains an example of using this property.

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

Was this page useful?