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
UA simulation server resetting sample interval
June 13, 2023
22:18, EEST
Avatar
SteveO
New Member
Members
Forum Posts: 2
Member Since:
June 13, 2023
sp_UserOfflineSmall Offline

I have a UA client requesting the simulation server’s default triangle signal with a update rate of 5 seconds. I am receiving data every second; and there does not appear to be a message informing the client that the server is changing the requested update rate. Is there any explanation why the requested rate is not being delivered?

June 14, 2023
10:52, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 340
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

What exactly do you mean by “update rate”? Subscriptions have Publishing Interval and MonitoredItems have Sampling Interval and when I set both of these to 5 seconds I get PublishResponses containing DataChangeNotifications every 5 seconds as expected.

However, if you do set the Publishing Interval to 1 second and Sampling Interval to 5 seconds, then you will get a new value every second instead of every 5 seconds. This is a known issue so we recommend avoiding using Publishing Intervals that are shorter than Sampling Intervals of MonitoredItems in the Subscription.

June 14, 2023
19:27, EEST
Avatar
SteveO
New Member
Members
Forum Posts: 2
Member Since:
June 13, 2023
sp_UserOfflineSmall Offline

Thank-you.
I think what I am experiencing is the known issue problem. My simulation interval (or Publishing interval) is set to 1 second at the simulation server. And my client is setting the MonitoredItem to a sample interval of 5 seconds. In the real world what is the expected behavior when this situation occurs?
-Inform the client the sample interval is not supported and reset the publishing interval to the closest allowed to the MonitoredItem sample interval?
-ignore client sample interval and publish at the defined Publishing interval?
-other?

June 15, 2023
8:29, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 340
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Simulation Interval and Publishing Interval have no relation with each other. Publishing Interval is a parameter of a Subscription requested by a Client and Simulation Interval is just an internal parameter of Simulation Server.

When Publishing Interval is shorter than Sampling Interval, there shouldn’t be new data changes for every Publishing Interval cycle and sending a Publish Response would be skipped for those cycles. For example, if your Publishing Interval is 1 seconds and Sampling interval is 5 seconds, it would be expected that the first Publish Response would contain the initial values of the MonitoredItems, then there would be four cycles without Publish responses and then on the 5th cycle a Publish Response would be sent again. Publish Responses following that on would be sent on the 10th, 15th, 20th cycles and so on.

If the difference between the Publishing Interval and Sampling Interval is very large, a keep alive message will be sent based on maxKeepAliveCount Subscription parameter to let the Client know that the Subscription is still alive, but there have been no data changes to report. For example if Publishing Interval is still 1 second, maxKeepAliveCount is 5 and Sampling Interval is 10 seconds, then on the 5th cycle a keep alive message would be sent, on the 10th cycle new data changes would be sent, on the 15th cycle another keep alive would be sent and so on.

If you’re interested in learning more about MonitoredItems and Subscriptions, please take a look at https://reference.opcfoundation.org/Core/Part4/v104/docs/5.12.1 and https://reference.opcfoundation.org/Core/Part4/v104/docs/5.13.1

What is happening in Simulation Server is that the MonitoredItems are forced to sample more often than their Sampling Intervals would suggest, which is why there are new data changes to report for each Publishing Interval cycle. This is a known limitation and at the moment you should use Publishing Intervals that are equal to or longer than Sampling Intervals of MonitoredItems in the Subscription to get the expected results.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 86

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 732

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1508

Posts: 6396

Newest Members:

elainesever, powhephenry, mamiecaldwell5, Lamasom, scsneed, berrybulcock, icerdraizomma, athenasummy5, vtaletbhcx, HaroldaDob

Moderators: Jouni Aro: 1019, Pyry: 1, Petri: 0, Bjarne Boström: 1016, Jimmy Ni: 26, Matti Siponen: 340, Lusetti: 0

Administrators: admin: 1