OPC Mobile Write Values

Refer to the VB.NET WinForm Example application for a full example on how to write data to OPC Systems.NET using the OPC Controls.NET Data component which performs exactly as the OPC Mobile.NET Data component.

To write values to any OPC Systems Service involves one simple method to write the values, one simple method to let the OPC Systems Services which Tags you wish to read to confirm the value was successful, and one simple event receive all changes and updates to the Tags you wish to read.

Use the AddTag or AddTags to subscribe to both local and remote OPC Systems Services to receive back the value for confirmation.

OpcMobileData.AddTag(""\\192.168.0.1\Write OPC Output.Value")

Use the WriteTag or WriteTags to send the desired values to the tags.

OpcMobileData.WriteTag(""\\192.168.0.1\Write OPC Output.Value", 1.23)

Use the ValuesChanged Event to receive the requested values continuously to confirm the values have changed..

Private Sub OpcMobileData_ValuesChanged(ByVal Tag As String, ByVal Value As Object, ByVal Quality As Boolean) Handles OpcMobileData.ValuesChanged