Question:
What is the OnTagRead event’s purpose?
Solution:
This is an I/O Driver’s event. It is fired on every reading performed by the Driver, regardless of which tags are being read, or of their total amount.
To use this event, you must set up the tags’ EnableDriverEvent property as True. In the Driver’s OnTagRead event, you can test Tag parameter to check which tag was read, according to the script below:
Sub Driver1_OnTagRead(Tag)
If Tag.name = “MyTag01” then
…
End If
End Sub