Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Reconnec issues with Siemens Desigo CC
November 24, 2020
18:07, EET
Avatar
evervondel
Member
Members
Forum Posts: 4
Member Since:
November 24, 2020
sp_UserOfflineSmall Offline

In our projects, we have a OPCUA client (build using OPCUA libs 4.4.2).
We typically connect to PLC’s via KepWare as an OPC(UA) server and all is working fine.

For one project we need to connect to a Siemens Desigo CC system. This system exposes its Siemens.OPC.Server.DA to OPCUA via a generic OPC Foundation OPCUA wrapper (delivered by Siemens).
All goes fine, but as soon as someone changes a config in Desigo we do not receive any tagupdates anymore.
Seems the subscriptions get lost somewhere… in the log we see the subscriptions reconnecting from the client side and succeeding in it… but no more updates from then although the tags change in Disigo CC….
But when we restart our application using the same config (= making a new client connection and new subscriptions) all goes fine again.

We suspect that there is something wrong with housekeeping at the OPCUA wrapper side…
But the customer says… yeah, but if you restart your client it is ok again so it must be at your side 🙁

Too cut a long story short:
Does anyone know of similar issues with an OPC Foundation OPCUA wrapper ?? or Desigo CC…
Any help/ideas are welcom

November 25, 2020
15:14, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

For classic OPC DA OPC UA, we recommend using https://www.prosysopc.com/products/opc-ua-gateway/.

The OPC UA Server must keep track of all MonitoredItems. OPC UA Clients do make the Subscription and items to it, after that they queue up PublishRequests that the server sends back as PublishResponses with the notifications for the items.

The notifications contains IDs assigned by the client. Basically if the server messes up that the client would have to detect that somehow. IF the server keeps however sending so called KeepAlives to it, then it cannot be done (the client cannot know should a variable be changing, at least not withing out-of-baud knowledge i.e. not directly via OPC UA, but you could e.g. “know” that an item should receive a change at least once within 10minutes for example).

If the client does not receive KeepAlives, it is still a server error, but that can be detected, though recovery of those must be handled by the SDK user manually. It is still a problem with the server usually though. Anyway, you must attach a SubscriptionAliveListener to the Subscription and handle that in onTimeout (no KeepAlive when it should have happened, Subscription should still exist on the server) and/or onLifetimeTimeout (no keepalives and the Subscription no longer exist on the server). Note that both are our custom client side time-based detections. Subscription.setAliveDetectionFactor and setTimeoutDetectionFactor can be used to adjust e.g. network latency if it is huge. Both however are an indication that something is wrong on the server.

Where possible, https://www.prosysopc.com/blog/opc-ua-wireshark/ is the best debugging way to know for sure that did the server respond a PublishResponse (and did we send a PublishRequest earlier for which that would have happened). Though you must use None or Sign(only) security modes for that to work.

Additionally, if you could also test with https://www.unified-automation.com/products/development-tools/uaexpert.html that does it too not get the data, if so, it would basically rule our SDK out of the picture and typically if both (UaExpert + our SDK) fails, it typically tends to be a server issue.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1