jQuery(function($){ $('#et-info').prepend('
'); });
1.800.608.9740

This tutorial will certainly guide you how to make use of COPC32 on Visual Basic.NET. You need to install COPC32 on your system prior to develop SCADA with Visual.NET as well as COPC32 ActiveX control. And we intend that you have OPC Web server on your local system currently.

We will create the simple kind to read as well as contact OPC server on regional systems. But you would, like to connect to remote OPC web server. Please configure DCOM on both server as well as client side by refer to tutorial of KEPWare at http://www.kepware.com/Support_Center/Viewlets/XP_sp2_viewlet_swf.html

The kind we will certainly develop is received Figure 1.

Figure 1

When individual insert numeric value in textbox and click button ‘& lsquo; Write ‘, COPC32 will contact OPC tag and show its value on ‘& lsquo

  1. ; Label1 ‘. Open Visual Studio.NET and crate brand-new job with VB.NET

Number 2

Kind the name of this project as “& ldquo; TestCOPC32VBNET &

rdquo;. 2. Include COPC32 ActiveX control right into tool kit by pick food selection Devices > > Add/Remove Toolbox Items & hellip;

Number 3

After that pick COPC32 received Number 4.

Number 4

After that click “& ldquo;

OK & rdquo; 3. Crate a button, a textbox as well as tag on kind like received Number 1
More Here https://freewindows10download.com/soft/copc32 At our site

. 4. Select in toolbox as well as drag on the form.

5. Right click COPC32 control on the kind as well as select ActiveX properties.

Number 5

Set upgrade rate to 100 msec. And also choose OPC Server name to desired OPC Web server. You have to get in IP address or machine name in ‘& lsquo; nodname ‘ textbox if you want to link to remote OPC server over the network.

Figure 6

6. Select OPC Tag you would like to link to.

Number 7

Click OK.

This OPC Tag could be Readable as well as Writable. You can look at your OPC Server like received Figure 8.

Figure 8 OPC Tag residential or commercial properties.

Number 9 Configure OPC tag index number = 0

And also click OK to leave home web pages.

Note: You can set up linked OPC tags by import OPC tag list from CSV file which export from OPC Server. Please refer to

http://www.scadathai.com/COPC/COPCEng/tutorials.htm

And see “& ldquo; Just how to fill OPC tags from CSV documents”&

rdquo;. 7. Double click on the form to enter to Form_Load event code sight.

8. Develop the code to attach to OPC server as well as get value of OPC tag index 0 to show on Label1.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Deals with MyBase. Load

Axcopc1.cnnec()

Label1.Text = Convert.ToString(Axcopc1.GetVl( 0 ))

End Sub

Note: If you have configure various other OPC tag such as OPC tag index number = 1. You can obtain its worth using ‘& lsquo

; GetVl( “1)’”. 9. Select & ldquo; Closing & rdquo;

event name from

dropdown. Number 10 And also produce the code like adhering to

Exclusive Below Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase. Closing

Application.DoEvents()

Axcopc1.discnn()

End Sub

Keep in mind: We utilize “& ldquo; Application.DoEvents()” & rdquo; to waiting various other job to finish before disconnect from OPC Web server.

10. Back to make view. Double click on COPC32 control on the form to go into to “& ldquo; datChange & rdquo; occasion code sight. After that produce the code to present OPC tag worth on Label1 when the vale of OPC tag we are linked has actually transformed.

Private Below Axcopc1_datChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles Axcopc1.datChange

Label1.Text = Convert.ToString(Axcopc1.GetVl( 0 ))

End Below

11. Back to form design view. Double click on switch ‘& lsquo; Write ‘. Then create code to create vale to OPC tag which has index number = 0.

Personal Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Deals with Button1.Click

Axcopc1.opcWrt(0, Convert.ToDouble(TextBox1.Text))

End Below

12. Examination program by click F5. Place the number into textbox and also click ‘& lsquo; Compose ‘. You could see the vale received label amounts to your enter number.

Figure 11

The total associated code is received Number 12.