Kepware clientace
This specifies the connectionparameters for the Server Management Object connection. A Connection Information Collection Object. This establishes the OPC DA connection to theserver. Thefollowing objects should be added and initialized: A Server Management Object. Then, right-click the Main.vb or Main.csform and select View Code.2.2Initializing Global VariablesGlobal variables can be used by all methods and functions in the project. Next, add the controls to the form that will be used to display the OPC data (ifthey haven’t been added already). Then, selectView Designer.Note: The new form will be named “Form1” by default, but can be renamed ifdesired.Creating a Simple Windows FormApplicationĢ. In Solution Explorer, right-click on the Main.vb or Main.cs form.
#KEPWARE CLIENTACE CODE#
Once finished, add a button that will be used to subscribe to the server’s data items.To do so, drag the control from the toolbox to the form.Note: Code must be added in order to perform the OPC processes.2.1Adding Controls to the Form1. NET examplebelow, two checkboxes, two textboxes, one progress bar, and a Third-Party gaugecontrol were added.5. NET or C# project by clicking File New Project.In the list of project templates, locate and select Windows Forms Application.Name the project “MyFormApp” and then click OK.Next, use the Toolbox to drag several controls to the form. Creating a Windows Form Application1.2.3.4.To start, create a new VB. An OPC Server (like KEPServerEX version 5.x).2. The project code was developed in Visual Studio 2010 using ClientAce 4.0.Unless noted otherwise, the same steps and procedures can also be used with ClientAce3.5.1.1Requirements Visual Studio 2008 SP1 or higher. NET) and C-Sharp (C#).Note: The coding practices used in the following examples are the preference of thedeveloper. OverviewThis document intends to demonstrate the basic steps needed to create a SimpleWindows Form application in Visual Basic.
13Creating a Simple Windows FormApplicationġ. 92.7Handling Changes to the Server State.
32.3.1Advising the Server Management Object for Callbacks. Kepware TechnologiesClientAce: Creating a SimpleWindows Form ApplicationJuly, 2013Ref.