KB-32839: OnTagRead event’s purpose.

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

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *