Open Automation Software

 

Button
CheckBox
ComboBox
Data
GroupBox
HScrollBar
Label
ListBox
Panel
PictureBox
RadioButton
StatusBar
TextBox
TrackBar
VScrollBar

 
 

Main Products Sales Services Case Studies Downloads Information Contact Us 請選擇你的語言 Deutsch

OPC Systems.NET OPC Client.NET OPC Controls.NET OPC Mobile.NET OPC Web Controls OPC Trend.NET OPC Web Trend OPC Alarm.NET OPC Web Alarm OPC Database.NET OPC Recipe.NET OPC Report.NET OPC Route.NET

 

OPC Controls Data

The OPC Controls Data component is used to read and write values to OPC Systems Tag Parameters.  Simply the easiest to use OPC .NET data component on the market.

Reading and writing to both local and remote OPC Systems Service Tags simplifies the task of reading and writing OPC data and all of the connection handling to OPC Servers is performed by the OPC Systems Service just as it does with all features of OPC Systems.NET.

If a Tag Parameter Source is defined to an OPC Item when the Tag Parameter is written to the OPC Item is also written to with the same value.

To add an OPC Controls Data component select the OPCControlsData component from the ToolBox and place it on any Windows Form of your choice.

OPC Controls Read Values

Refer to the Example application for a full example on how to read data from OPC Systems.NET.

To read values from the OPC Systems involves one simple method to let the OPC Systems Services which Tags you wish to read and one simple event receive all changes and updates to the Tags you wish to read.

Use the AddTag or AddTags as many times as you desire to subscribe to both local and remote OPC Systems Services.

        Dim Tags(2) As String

        Tags(0) = "Ramp.Value"

        Tags(1) = "Sine.Value"

        Tags(2) = "Random.Value"

        OpcControlsData.AddTags(Tags)

Use the ValuesChanged Event to receive the requested values continuously any time the values are requested or the values change.

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

Use the RemoveTag or RemoveTags as many times as you desire to unsubscribe to both local and remote OPC Systems Services.

        Dim Tags(2) As String

        Tags(0) = "Ramp.Value"

        Tags(1) = "Sine.Value"

        Tags(2) = "Random.Value"

        OpcControlsData.RemoveTags(Tags)

OPC Controls Write Values

Refer to the Example application for a full example on how to write data to OPC Systems.NET.

To write values from the OPC Systems 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.

OpcControlsData.AddTag("Write OPC Output.Value")

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

OpcControlsData.WriteTag("Write OPC Output.Value", 1.23)

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

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

 

 

 

Back Next