<< Click to Display Table of Contents >>
OnTagWrite |
OnTagWrite(Tag, Succeeded, User)
Occurs when a writing is triggered on any OPC Driver's Tag. For this event to occur, Tag's EnableDriverEvent property must be enabled. If this writing is asynchronous, the OnTagWrite event is triggered only when the server sends a response indicating whether that writing was successful or not.
Parameters of the OnTagWrite event
Name |
Description |
---|---|
Tag |
A reference to the Tag object being written. For example, users may access a Tag property using a Tag.DocString syntax |
Succeeded |
A Boolean value indicating success or failure when writing |
User |
Parameter that receives the user performing the writing operation. Default value of this parameter is "System". If there is no user logged in the Elipse Power Viewer generating this event, this parameter contains the value "Anonymous". If the writing is asynchronous or if there is a failure reported in an asynchronous way, this parameter always contains the value "System" |