OPC UA Multiple Interval settings while using Subscription

hi,
In my project, I was trying to set the OPC UA Subscription with two intervals using specific variable value [ true ] from the read information received from the opc ua Client.and as soon as the value of variable changes to false need to have a subscription with the longer interval.
Tried to using msg.payload , no luck yet.

  1. Can you please advise me on the nodes i need use to achieve two different intervals to the OPC UA Subscription node ?
  2. On my flow, on the subscription method to read, I tired using template and CSV node to configure all the data in one place, but was ended up with an error, I think, Stringarray data type is creating a problem
  3. Can you please suggest me in using the right method to use template and csv node for the Subscription method ?
  4. Also, while writing, it's creating an error if i use data type as StringArray, can you please suggest me the method i should use with the proper data type [ stringarray ] ?

flows (1).json (101.2 KB)

You Valuable inputs highly appriciated.

Best Regards,
Mani

@ Mika Karaila,

Looking forward to here from you on using multiple time interval settings while using OPC UA Subscription ?

Best Regards,
Mani

SImple solution: you have to use 2 client nodes with different parameters.

Thanks for response @mikakaraila ,

The intension of having multiple subscription to reduce my CPU and RAM usage.
Having one more client node will increase the RAM ,CPU load and max number of sessions, etc...

It would be nice feature to have a configurable interval based on event, so that my CPU Load and RAM utilization goes high for a shorted period instead of all the time.

Example : I would like to Monitor the Tank Level at a 200ms whenever the motor is ON, so that I can switch off the motor precisely before it overflows. Remaining all the time the subscription rate can be at 2sec.

Or Please do suggest any solution which can't eat-up my CPU Load and RAM

Best Regards,
Mani

Look first this figure: https://www.researchgate.net/figure/OPC-UA-slient-server-subscription-communication-model-based-on-10_fig1_329741689

Then this one: High Performance OPC UA Server SDK: OPC UA Subscription Concept

One subscription can have only one publish interval / other subscription parameters like sampling interval.

If you want to save session you can always build with function node needed subscribe msg that contains needed properties.

@mikakaraila : Thanks for your detailed explanation and I will try these and get back to you if needed.

Mani

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.