Forum Home › Forums › Development and Integration › Source Code KpOpc.dll
Tagged: opc da
- This topic has 50 replies, 5 voices, and was last updated 5 years, 3 months ago by SuperDev.
-
AuthorPosts
-
August 16, 2017 at 9:17 pm #2495SvenParticipant
Hi Mikhail,
Is there source code for the KpOpc?
Also I can’t find the KpOpc in the source code for Rapid Scada.
August 17, 2017 at 9:45 am #2497August 18, 2017 at 6:23 am #2498SvenParticipantThanks Mikhail, I know this might be on the wrong forum but the KpOPC references OpcNetApi, OpcNetApi.Com and OpcComRow. I have installed OPC core components both x64 and x86. The installers don’t seem to install files. I’ve searched the web for answers and many people have this issue. Did you ever encounter this issue? If so how did you fix it? I have downloaded another project and used the dlls from there for testing however after building the KpOpc, when I run the ScadaCommCtrl and try to use the KpOpc.dll I get the error “Could not load file or assembly OpcNetApi”.
August 18, 2017 at 10:28 am #2501MikhailModeratorTake the required DLLs in C:\SCADA\ScadaComm after installing Rapid SCADA.
Then check their path in the project dependencies.March 23, 2018 at 2:46 pm #3341syndrome5ParticipantHello,
I’m looking for updated KpOpc.dll sources if possible.
Why don’t you put them on Github ?
My goal is to implement OPC UA in RapidScada.Regards
March 23, 2018 at 5:25 pm #3349MikhailModeratorHi,
I’m looking for updated KpOpc.dll sources if possible.
Why don’t you put them on Github ?Take them here. I’m not sure about license of classic OPC, while OPC UA .NET API is definitely open sourced by the manufacturer.
My goal is to implement OPC UA in RapidScada.
It would be great!
March 26, 2018 at 11:28 am #3359syndrome5ParticipantThank you very much, I understood the “discovery” of DLLs.
I would like to implement RapidScada web server on a Linux environment. We’re agree that DLL import functionalities is not working ?! Then OPC (DA) is not working on Linux, Mono ?
I can dev an OPC UA dll (for windows) but my main goal is to integrate all this stuff on Linux (and so have OPC UA, because DA is only on windows).March 26, 2018 at 12:53 pm #3361MikhailModeratorOPC DA doesn’t work on Linux because it uses Windows DCOM, while OPC UA should work.
Other Rapid SCADA drivers work on Linux and the web app also works well.March 26, 2018 at 12:55 pm #3363syndrome5ParticipantSeems interesting, but how, in Linux environment, the DLL system can work ?
March 27, 2018 at 3:21 pm #3367MikhailModeratorBy the control of Mono .NET Framework https://www.mono-project.com/
March 28, 2018 at 9:14 am #3373syndrome5ParticipantAnyway I’ll try it later, I’m on windows for now, but thank you.
Ok I made something cool to grab valuesNow, I would like to understand how do you manage to associate these values (in KpOpcUA_061.xml) to server (to display it on web interface ofc) ?
I already created all needed stuff on ScadaAdmin (like DeviceType, Device etc…) but I don’t know how the server works to grabs values added by the admin. I think it loads DLL and try to read specific function ?After I have to manage the DLL for KpOpcUA_061.xml specs (like serverpath).
March 28, 2018 at 10:39 am #3377syndrome5ParticipantI just saw Kp…Logic.cs looks like that I searched
March 28, 2018 at 4:57 pm #3381MikhailModeratorDo these values are got by OPC UA?
You should learn the existing drivers, especially KpTest: https://github.com/RapidScada/scada/tree/master/ScadaComm/OpenKPsMarch 29, 2018 at 9:17 am #3390syndrome5ParticipantExactly, I based my work on your KpOpc projet to make KpOpcUA Demo DLL.
Now I’m working on KpLogic (the result of FrmConfig is on the screen). The best thing would be a graph to understand which function are called by KP when it’s try to load DLLs (I just understood that there is a part for configuration, and a part for communication with web server directly without form).
I try to understand how you link OPC Tags because in :
KpOPC.xml : you only got dataitem name, no unique identifier.
OpcDemo.tbl : name of tag & cnlNum
inputChannel in dataBase : nb like cnlNum, tagname and a signal numberWhy don’t associate directly Tag path (ex: Group1.group2.item1.item2.Int8) with an unique identifier for web server ? I saw that it’s managed by subjective index in the sorted order… And i don’t want to change KP project.
March 29, 2018 at 11:59 am #3391syndrome5ParticipantAnd currently I’m stuck because a OPC UA function cannot be used because the DLL is called with MTA Thread mode, and it would be on STA..
If you have a solution, don’t hesitate to share it to me. -
AuthorPosts
- You must be logged in to reply to this topic.