OPC v2.0 can get tags but NOT values

Forum Home Forums Communicating with Devices OPC OPC v2.0 can get tags but NOT values

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1845
    zju
    Participant

    Dear Mikhail,

    Thanks again for the amazing project.

    Recently, I found an interesting problem in reading data from OPC server using OPC version 2.0. I am using the KpOPC.dll. I could read tags but could not read values. However, I definitely could get values in my demo which aimed in debugging this problem. The only difference is that rapidscada is running based on window service but my demo is not. It’s so wired!

    I emailed my demo to your gmail. I will apprecited it if you could give any advise!

    Best regards,
    Yang

    #1846
    Mikhail
    Moderator

    I think the cause that the service and your app work by different users. Service works as system. Your app works as other user. Try changing the user of the service. See the end of the article http://rapidscada.org/connecting-devices-using-opc-standard/
    Please write about the result.
    Note. What do you think is OPC UA is actual for you?

    #1847
    zju
    Participant

    Dear Mikhail,

    Thanks so much for your nice reply!
    I tried to follow the suggestions from that page step by step carefully. Neither solution worked. The ‘State’ in the SCADA-Communicator was ‘error’. I tried in 3 computers in win10, win7 and xp. None of them worked. It’s so wired.

    I tried to test the OPC server using other OPC client. They worked well. It means the OPC server has no problem. As you know, in the last time, I wrote a demo to communicate with the OPC server using codes from kpopc. It did work well when I did not use window service.

    Therefore, I think the problem should be related to the window service. Could somebody advise how to solve this problem?

    Thanks! Merry Christmas!

    Regards,
    Young

    #1848
    Mikhail
    Moderator

    Dear Young,

    Thank you for the research.
    I have an idea:
    1. Copy ScadaCommMono.exe from Rapid SCADA for Linux installation package to C:\SCADA\ScadaComm\
    2. Run it instead of the service.

    This is the same Communicator but works as a console app.
    Does it work with your OPC server?

    #1849
    zju
    Participant

    Dear Mikhail,

    It DID work!!!! So amazing!

    To tell you the truth, I had spent about 3 weeks in this problem!

    Thanks so much! You are so patient and so NICE!

    Best wishes to the amazing project. And, Merry Christmas!

    Best regards,
    Young

    #1850
    Mikhail
    Moderator

    Thank you Young for so kind words 🙂
    Merry Christmas!

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