question

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

Sending variable value to OPC UA

I testing to send variable value to OPC UA when the value change. I created a simple process flow to inclement value. Then when the value change, I want to send this value to OPC UA. However, I don't know how to associate this variable activity (object) in Emulation property. How do I associate to achieve this?


1694061938493.png

send value to OPC UA.fsm

FlexSim 23.0.10
emulationopc ua
· 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 Arun Kr'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

Arun Kr avatar image
0 Likes"
Arun Kr answered

Since you are using process flow, you can bring the emulation variable in the "Varibale" shared asset and by using the set variable activity itself the tag value can be changed. If you are not using process flow then you can listen to the events in the 3d then you can add an associated object and its related events to write the value on the tag.

1694065377378.png



1694065377378.png (107.2 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 ·

@Arun Kr Thank you for your reply. I can set the "variable" shared asset to the OPC UA sensor variable, but this itself doesn't send token.variable value to the OPC UA, if my understanding is correct. I did set "variable" shared asset to the OPC UA sensor variable but nothing happened on OPC Server side.

0 Likes 0 ·
Arun Kr avatar image Arun Kr Ryosuke S commented ·

The activity "Set Variable" will change the value. Once the token goes through it.

0 Likes 0 ·