Open edimetia3d opened 6 years ago
=( Nice project! I will try fix problems.
OPC remote connection is terrible. Look at this "quick" guide: https://www.kepware.com/en-us/support/resource-library/connectivity-guides/remote-opc-da-dcom
Thanks for you project! I think, it is unique in github. OPC DA is "black box" for modern programmers, so open source project is the best way to start work with it.
I use the same source for OPC DA client, but got abnormal behaviour sometimes: Some OPC Servers come with hardware devices. If device disconnects from the server, OPC server lost the tag. Only restart connection helps to continue reading value.
Since this project is no longer developed, here is an alternative if you want to continue using C++ to retrieve DA data back.
This solution works on network transportation layer, so there is no need for OPC C++ component SDK anymore. No COM/DCOM is involved. It works as a 64-bit native application from day one. Besides C++, you can choose any modern languages at your preference - Python/JavaScript/C#/Java etc. Much easier and straightforward, IMO. Cheers!
Since I am not an expert in windows programming, the problems in this project have been beyond my ability, I can hardly contribute more to this project. And also, I am doing some other things now, which are not related to the automation system. So I couldn't put more energy into this project, only Pull Request will be handled in the future.