question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Jeanette F commented

Reading value from OPC UA Server

Hello, one of our customer is trying to connect between FlexSim and PLC using OPC UA. Customer succeeded in sending value from FlexSim to OPCUA. However, unable to read value from OPCUA. In version 2022, I think we needed to make check on "Subscribe to Changes" in order to read value from OPC UA. However, it has been grayed out in 2023.

Do you need not make check on this? What have changed in 2023 from 2022?
There is no error message from FlexSim or OPC Server.


1693903712208.png

FlexSim 23.0.9
emulationopc ua
1693903712208.png (59.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Ryosuke S, was Luciano Cavallero's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Luciano Cavallero avatar image
0 Likes"
Luciano Cavallero answered

Hi,

In 2023 OPC UA connection are create with the "Poll for changes" activate, by default:

1693920173349.png

This option disable the "Subscribe for changes".
The "Poll for changes" has been introduced to by-bass the minimum publishing time of OPC UA servers that some time can be also >200ms.



1693920173349.png (59.3 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryosuke S avatar image Ryosuke S commented ·

@Luciano Cavallero Thank you for your reply. To clarify, my understanding is that subscribe for change and poll for changes are functionally same. Poll for changes give you better performance?


0 Likes 0 ·
Luciano Cavallero avatar image Luciano Cavallero Ryosuke S commented ·
Yes.

We introduced the "poll for changes" to overcome minimum publishing time imposed by some OPC UA Server.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.