Dear All,
I am trying to establish communication between WinCC OA 3.16 Patch 17 and a remote OPC server (Advsol Gateway)using protocol OPC DA. I have the following problem:
I can explore the variables tree within the controller but I cannot read the value from my variables. The OPC log contains the following error:
Could not connect shutdown interface!: A security package specific error occurred. (0x80070721)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
"FSC" uses IConnectionPointContainer and IOPCAsyncIO2!
Could not Advise OPCIfceDataCallback: "A security package specific error occurred. (0x80070721)"
WCCOAopc (2), 2020.05.30 07:22:57.149, WORK, increasing state in PmonTable for idx = 26
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: inputReady
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 161 bytes
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: All received
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, Got message 41 from (SYS: 1 Event -num 0 CONN: 1)
WCCOAopc (2), 2020.05.30 07:22:57.149, WORK, "Hotlink received for (Type: 164 Sys: 1 Dp: 66015 El: 29 : _original.._value)"
WCCOAopc (2), 2020.05.30 07:22:57.149, WORK, Hotlink: Got internal DP
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 204 bytes
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: All received
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, Got message 42 from (SYS: 1 Event -num 0 CONN: 1)
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 0 bytes
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan !receiver.receive_state_all(), only a part of a MSG received. Loop #:3
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: inputReady
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 2692 bytes
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: All received
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, Got message 43 from (SYS: 1 Event -num 0 CONN: 1)
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 0 bytes
WCCOAopc (2), 2020.05.30 07:22:57.149, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan !receiver.receive_state_all(), only a part of a MSG received. Loop #:2
WCCOAopc (2), 2020.05.30 07:23:01.962, WORK, Alive Refresh started for "FSC"
Refresh started for group "FSC"
Refresh ended for group "FSC"
WCCOAopc (2), 2020.05.30 07:23:06.980, WORK, Alive Refresh started for "FSC"
WCCOAopc (2), 2020.05.30 07:23:11.981, WORK, Alive Refresh started for "FSC"
WCCOAopc (2), 2020.05.30 07:23:16.997, WORK, Alive Refresh started for "FSC"
WCCOAopc (2), 2020.05.30 07:23:21.999, WORK, Alive Refresh started for "FSC"
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: inputReady
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 160 bytes
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: All received
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, Got message 44 from (SYS: 1 Event -num 0 CONN: 1)
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan: got 0 bytes
WCCOAopc (2), 2020.05.30 07:23:26.905, INPUTREADY, (SYS: 1 Event -num 0 CONN: 1) @ win00-503p.bhs.lan !receiver.receive_state_all(), only a part of a MSG received. Loop #:2
WCCOAopc (2), 2020.05.30 07:23:27.015, WORK, Alive Refresh started for "FSC"
WCCOAopc (2), 2020.05.30 07:23:32.030, WORK, Alive Refresh started for "FSC"
The opc entry within the config file are:
[opc]
server = "IFAT1" "10.193.75.211/IFAT.CPH.7"
timeStampFromServer = "No"
valueChangeTimeDiff = 60
[opc_IFAT1]
#setInvalidForConnLoss = 1
I have attached all the configuration setting and the datapoint used for testing. Also, I have used an external OPC client installed on the same server in order to check if the problem is WinCC OA, and it is working.
We have tried to change the DCOM setting to see if the problem is resolved but nothing.
Do you have any tip for me to solve the issue? Maybe you can point me in the right direction.
Best Regards,
Michele.
OPC DA Connection Problem 0x80070721
- michele.casella@vanderlande.com
- Posts:6
- Joined: Tue Apr 30, 2019 10:46 am
- michele.casella@vanderlande.com
- Posts:6
- Joined: Tue Apr 30, 2019 10:46 am
Re: OPC DA Connection Problem 0x80070721
Dear All,
I solved the issue, it was a security issue. The user that runs the PMON does not have enough OS right to establish the communication. If I run the project as a Windows service, it works without problems.
Best Regards,
Michele.
I solved the issue, it was a security issue. The user that runs the PMON does not have enough OS right to establish the communication. If I run the project as a Windows service, it works without problems.
Best Regards,
Michele.