KB-29076: Sequence of Events (SOE).

Question:

How can I perform a Sequence of Events (SOE) in E3?

Solution:

This can be done in two ways: via alarms settings, or via I/O Driver’s OnTagRead event.

How can I use I/O Driver’s OnTagRead event?

Just check the tags’ EnableDriverEvent property, and the value changes will fire I/O Driver’s OnTagRead event. This event allows you to take any bit of information regarding these tags and then perform writing in the database. For example:

Sub Driver1_OnTagRead(Tag)
     set tagint = Application.GetObject(“Data.InternalTag1″)
     tagint.DocString = Tag.Name
     tagint.Value = Tag.Value
     tagint.TimeStamp = Tag.TimeStamp
     tagint.Quality = Tag.Quality
     Application.GetObject(“Hist1”).WriteRecord()
End Sub

In the example above, InternalTag1’s DocString, Value, TimeStamp, and Quality properties are the fields in Hist1.

NOTE: Don’t forget to uncheck the historic’s scan recording by setting ScanTime = 0.

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 *