|
|
|
|

|
|
Back to all documents
Tutorial - Getting Started with Visual Basic 6 and the OPC Web Client ActiveX Controls
The following tutorial takes you step-by-step setting-up the Visual Basic to be able to use the OPC Web Client ActiveX Controls. This tutorial shows you how to create a
simple application that when started-up will display the value of a Tag.
Creating a new project
- Open Visual Basic 6
- Create a new project, by choosing the "New" option from the "File" menu.
- Choose "Standard EXE" from the dialog of Visual Basic templates.
- You will see a new <empty> form get created.
Referencing the OPC Web Client
- Go to the "Project" menu, and choose the "References" option.
- Scroll down the list and locate "EasyOPCDA 3.0 Type Library" and check the box next to it.
- Click the OK button.
Using the OPC Web Client
- Double-click the Form to go to the Code view
- You will now be inside the "Form_load()" event.
Move the cursor into the middle of the "Sub" so that it is on the blank line. as shown below:

- Now you can copy & paste any of the code from the tutorials section.
|
|

|
|
|