<< Click to Display Table of Contents >>
OnRead |
OnRead()
Occurs when a Driver performs an I/O Block reading. Use the OnRead event to perform some operation right after some data has been modified in the I/O Block object, such as the Quality, TimeStamp, or even the Value property of some of the Block's Element. Example:
Sub IOBlock1_OnRead()
' When reading a block, assign to the InternalTag1 tag
' the value of the block element elm1.
Set obj=Application.GetObject("DataServer1.InternalTag1")
Set elm = Application.GetObject("Driver1.IOBlock1.elm1")
obj.Value = elm.Value
End Sub