Wednesday 24 July 2013

My OPC Client


My OPC Client is an application for accessing OPC Server.

The features of this application:
1.    List active OPC Servers in Local and Remote computer.
2.    Connect to Local and Remote OPC Server.
3.    Browse OPC Items.
4.    Monitoring values of OPC Items.
5.    Can write value to OPC Items.


Preview of My OPC Client


List OPC Server and Browse OPC Item


Add OPC Item to Monitoring


  
Set Monitoring On


Write value to OPC items



Value Changed from WinCC Runtime

==========================================================

My OPC Client v3

In this version, there are some modifications, ie:
> start connection to OPC Server with double-click, or via popup menu.
> a popup menu shows when right-click on OPC Server list, for Connect and Disconnect.
> fix a bug while try to browse OPC items.
> fix a bug while add OPC items to monitoring list.
> since version 2, My OPC Client can connect to multiple server and monitoring the values.

Here is a new display:





Here the links for latest My OPC Client (v3) :
for executable file of this program, click here..
for source code of this project, click here..

==========================================================

My OPC Client v4

In this version, there are some modifications, ie:
> DLL for Reference.
> repair Read button.

Note:
+ DLL file OPCDAAuto.dll must be registered in your PC. So we include a folder and there is a file update_OPCdaauto.bat to simplify the registration.
+ if your PC is 64-bit, please refer to this article, to register the DLL.


Here the links for latest My OPC Client (v4) :
for executable file of this program, click here..
for source code of this project, click here..

====================================

My OPC Client v5

Versi lanjutan dengan fitur Auto Read/Write to XML file, silahkan lihat disini:
http://hadiscada.blogspot.com/2015/08/my-opc-client-xml.html

========

My OPC Client v6

Versi lanjutan dengan fitur Export & Import Text file, silahkan lihat disini:
http://hadiscada.blogspot.co.id/2017/01/my-opc-client-v6-export-import.html

51 komentar:

  1. I am happy that this project (My OPC Client) is the most viewed article in this blog. Thank you.. :)

    There is a bug, My OPC Client can not read (browse) a tag which is located outside of group.
    So, I edit a source code. In this sub program :

    Private Sub treeOPC_NodeMouseClick

    I remove this condition:

    If e.Node.Nodes.Count = 0 Then

    and its 'else' and 'end if'
    Finally the program runs well.

    I change this project from using VS 10 to VS 10 Express.
    And I have updated the download link to the latest project.

    Best regards.

    ReplyDelete
  2. Which opc server brands this program can read? Simens, Yokogawa, ...

    ReplyDelete
    Replies
    1. i have tried it to OPC server of WinCC Siemens, OPC Server of RSLinx Rockwell. I have not tried it on Yokogawa and others, but i think that is similar as long as that use OPC protocol.

      Thanks.

      Delete
    2. fauzan azima comment on 25 Mei 2015 05.47
      "its very simple OPC Client software,
      i have tried with Yokogawa Stardom, and working good.
      keep it up bro"

      Delete
    3. I have tried it on Kepware it worked.... but it is not able to connect to Remote Kepware. on local machine it worked perfactly... do you have any solution for remote kepware

      Delete
  3. Sorry, the links are dead can you re-upload them ?

    ReplyDelete
    Replies
    1. From here, all link is Ok. Please try again.

      Delete
  4. Ive tried to check the links, but, both are down!

    ReplyDelete
    Replies
    1. We will try to send the files via email. Please send your email address to us here or to hadiscada@gmail.com

      Delete
  5. How do you get your program to use the dll? I can't run the exe because it gives a Windows error, and the source code can't find 'Imports OPCAutomation'.

    ReplyDelete
    Replies
    1. Hi,
      you need OPCAutomation.dll installed on your PC. The DLL is in My_OPC_Client folder, but unfortunately it can not be registered manually (by using RegSvr32).
      The DLL (OPCAutomation.dll) is created by OPC Foundation, and distributed by Vendors like Rockwell, Siemens, KepWare, and automatically installed while installing their HMI/SCADA softwares.
      we get the DLL, installed in our PC because we install WinCC.
      So, what you needed is install one OPC Server on your PC.

      Delete
  6. Hi.
    I try to use Your client (with Moeller Easy OPC server), I can connect to server, I see variables, I can add them to datagridview, but read button does't work (null exception), but write button works fine (I can save values in PLC).
    Can You check once again read button?
    Regards
    Andrzej

    ReplyDelete
    Replies
    1. Hi,
      Thank you for your information. Please download the latest version (v4), I already fix that bug. Here is the link: http://goo.gl/bz69Hc

      Delete
  7. Hi,
    your OPC client is perfect, but I have a problem. I can not programming in Visual Basic, so I transferred your the project to C #, but there compiler writes error:Error 1 An assembly with the same simple name 'Interop.OPCAutomation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side. Interop.OPCAutomation.dll My OPC Client.

    Can you help me please?? Thanks

    ReplyDelete
    Replies
    1. Hi, i am sorry, my experience in C# is poor. But i think this link will help you: http://stackoverflow.com/questions/3160634/an-assembly-with-the-same-simple-name-has-already-been-imported-error-without

      Delete
    2. Hi,
      Hans, I have same problem.
      could u solve it ?

      Delete
  8. Hey! Great program, thanks!! I'm not very experienced in this business, so I want to know if this software is freeware? Is it allowed to modifiy it and use it for similar funktions ;) ?

    Greeting!
    Kristian

    ReplyDelete
    Replies
    1. Hi..!
      Yes, this software is a freeware, you can modify and use it for your own projects/functions.
      Thanks.

      Delete
    2. Great! That makes me really happy :D

      Delete
  9. Hello Hadi,

    I'm trying to connect to a server from my laptop, the server is located on another PC. I'm unable to connect and as IP I give the IP of the network adapter of the server PC. The firewalls are off. Is there something I need to do specially? How to set the interface of my laptop?

    ReplyDelete
    Replies
    1. Hello..

      Please try to access shared folder located on remote PC.

      Some OPC server must have a same username and password.

      Delete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Hello,

    I downloaded your project and tried to connect to the Softing classic opc demo server. It works fine, but when I disconnect, the opc server doesn't close. I have to close the client for the server to close.
    This is not the case with other opc clients (where source code is not available).
    Do you have the possibility to try this scenario? Maybe there ist something wrong with my opcdaauto.dll ...

    ReplyDelete
    Replies
    1. Hai,
      I am sorry, i have no suggestion for your problem, but can you share the link for Softing Classic OPC Demo Server..? i want to try that.
      Thank you.

      Delete
    2. Here is the link:
      http://industrial.softing.com/en/products/software/opc-development-toolkits/opc-classic-development-toolkits/opc-classic-da-ae-xml-da-client-and-server-toolkit-for-windows.html

      Downloads -> OPC Classic Demo Server

      Thank you

      Delete
  12. its very simple OPC Client software,
    i have tried with Yokogawa Stardom, and working good.
    keep it up bro

    ReplyDelete
  13. Versi lanjutan dengan fitur Auto Read/Write to XML file, silahkan lihat disini:
    http://hadiscada.blogspot.com/2015/08/my-opc-client-xml.html

    ReplyDelete
  14. I used the same dll to read the data from kepware server and everything is working fine but the reading process is very time consuming.I read some articles and found read from opc cache may optimize the reading time,so i change my code to read fr opc cache and yes it optimize the reading process but the value i get is always unknown,it seems like kepware does not update the cache, any idea to fix this?

    ReplyDelete
    Replies
    1. Hi Faiz,
      we are sorry, we have no idea for the problem. we have no (not yet) experience with OPC cache.
      we hope you will find the solution soon.
      Regards.

      Delete
  15. Hi Hadi,
    I am using your client , its working grt but when i use this client in fresh OS , After clicking 'List of server' its producing an exception like 'Error HRESULT E_FAIL has been returned from a call to a COM component', Please can give any solutions for this, Its too urgent for me to get solution. Thanks.

    ReplyDelete
    Replies
    1. Hi..
      Maybe you must cek the OPC Server is able to receive connection. You can try first with other OPC client software.

      Delete
    2. hi mas hadi...
      saya masih pertama kali memakai aplikasi ini.ketika koneksi masalah sm sperti yg diatas. utk cek seting opc server yg receive connection disebelah mana ya?
      saya memakai siemens simatic pcs 7

      Delete
    3. Please describe more detail and send the screenshots to email: hadiscada@gmail.com
      Thank you.

      Delete
    4. same problem here, did u find a solution?
      is the DLL to be registered OPCDAAuto.DLL

      Delete
    5. Yes, the DLL (OPCDAAuto.DLL) must be registered.

      Delete
  16. mantap mas hadi tutorialnya.. kebetulan saya juga sedang mempelajari opc server ini. saya pakai plc siemens s7-300.
    saya mau tanya, bagai mana untuk ngepopulate semua item secara hardcode. saya sudah coba buat Myopcitem-nya menjadi array, namun menjadi eror ketika read.
    terimakasih.

    ReplyDelete
    Replies
    1. silahkan lihat di artikel terbaru: My OPC Client v6 - Export & Import

      Delete
  17. thanks for your efforts the topic is very helpful
    can you please advise the method for read and write for many tags with text value,(as project my simple opc client)
    as i want to enter the tags inside the source project
    and each tag have text box for read and write
    can you help me for this issue

    thanks again

    ReplyDelete
    Replies
    1. i repply your question to your email. please check it.

      Delete
  18. Are you looking for Best HMI, Drives and Networking training in Delhi. HMI Training Courses & Classes in Noida deliver by DIAC Corporate trainers with placement assistance. Call @9310096831.

    ReplyDelete
  19. No, this is OPC DA client, not UA.

    thanks.

    ReplyDelete
  20. Hello. I try connect Opc client to Kepware with internet. It error

    ReplyDelete
  21. thank you its a great work but there is an error reading ond writing negative values example -5 thanks to correct the error please

    ReplyDelete
    Replies
    1. thank you for your info..
      i will check it.

      Delete
    2. i already check it, MyOPCClient is able to read negative values..

      Delete
  22. Its a wonderful post and very helpful, thanks for all this information. You are including better information.
    Networking Training in Delhi


    ReplyDelete
  23. Awesome post. You Post is very informative. Thanks for Sharing.
    SCADA Training in Noida

    ReplyDelete
  24. I have problems connecting this with Omron PLC, are there any modifications needed?

    ReplyDelete
    Replies
    1. check OPC Server Name, it must be correct..

      Delete

 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger