<< Click to Display Table of Contents >>
OnRead |
OnRead()
Occurs when an I/O Tag reading is performed by the I/O Driver. Use this event to perform some operation right after some data is modified in the I/O Tag, such as the Value, Quality, or TimeStamp properties. This event is generated by a background reading. The next script contains an example of using this event.
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