Source Code KpOpc.dll

Forum Home Forums Development and Integration Source Code KpOpc.dll

Tagged: 

Viewing 15 posts - 1 through 15 (of 51 total)
  • Author
    Posts
  • #2495
    Sven
    Participant

    Hi Mikhail,

    Is there source code for the KpOpc?

    Also I can’t find the KpOpc in the source code for Rapid Scada.

    #2497
    Mikhail
    Moderator

    Hi,
    Download the sources by this link.

    #2498
    Sven
    Participant

    Thanks 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”.

    #2501
    Mikhail
    Moderator

    Take the required DLLs in C:\SCADA\ScadaComm after installing Rapid SCADA.
    Then check their path in the project dependencies.

    #3341
    syndrome5
    Participant

    Hello,

    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

    #3349
    Mikhail
    Moderator

    Hi,

    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!

    #3359
    syndrome5
    Participant

    Thank 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).

    #3361
    Mikhail
    Moderator

    OPC 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.

    #3363
    syndrome5
    Participant

    Seems interesting, but how, in Linux environment, the DLL system can work ?

    #3367
    Mikhail
    Moderator

    By the control of Mono .NET Framework https://www.mono-project.com/

    #3373
    syndrome5
    Participant

    Anyway I’ll try it later, I’m on windows for now, but thank you.
    Ok I made something cool to grab values OPCUA

    Now, 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).

    #3377
    syndrome5
    Participant

    I just saw Kp…Logic.cs looks like that I searched

    #3381
    Mikhail
    Moderator

    Do these values are got by OPC UA?
    You should learn the existing drivers, especially KpTest: https://github.com/RapidScada/scada/tree/master/ScadaComm/OpenKPs

    #3390
    syndrome5
    Participant

    Exactly, 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 number

    Why 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.

    #3391
    syndrome5
    Participant

    And 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.

Viewing 15 posts - 1 through 15 (of 51 total)
  • You must be logged in to reply to this topic.