OnRead

<< Click to Display Table of Contents >>

 

OnRead

OnRead()

Occurs when a Tag reading is performed by the Driver. Use the OnRead event to perform some operation right after some data is modified in the Tag, such as the Value, Quality, or TimeStamp properties. This event is generated by a background reading. Example:

Sub CommTag1_OnRead()
  ' When reading the tag, assign its value
  ' to the InternalTag1 tag.
  Set obj = Application.GetObject("DataServer1.InternalTag1")
  obj = Value ' CommTag1 Value
End Sub

Was this page useful?