Readout the sampling queue
Posted: 31 Jan 2017, 11:57
Hello,
I'm trying to develop an Opc-Ua-Client for a PLC and got some issues there. The PLC is running software from the company B&R.
Currently i want to monitor a single server variable. The value of this server variable is count up every 10ms by 1.
So i want to monitor the server variable with my client, using a subscription. Now i know that the minimal possible publishing interval is 50ms.
The subscription settings include the publishing interval of 50ms, a sampling interval of 10ms for the server and a sampling queue of 100 which the server should use.
At the moment the client only notices every 50ms a value change of 5 from the server variable. --> As far as i unterstand the client only gets the current value of the variable after the publishing time expires.
But what's about the values between this time? Is there a possibility at all to read out the sampling queue? Or how can the sampling queue be used at all? I don't need to see a value change every 10ms with the client, but i want to see 5 sampled values after 50ms. This would be neat for measuring values.
Because english is not my native language feel free to critcize any rude mistakes in my writing. I will correct it then.
Thanks for any responses!
I'm trying to develop an Opc-Ua-Client for a PLC and got some issues there. The PLC is running software from the company B&R.
Currently i want to monitor a single server variable. The value of this server variable is count up every 10ms by 1.
So i want to monitor the server variable with my client, using a subscription. Now i know that the minimal possible publishing interval is 50ms.
The subscription settings include the publishing interval of 50ms, a sampling interval of 10ms for the server and a sampling queue of 100 which the server should use.
At the moment the client only notices every 50ms a value change of 5 from the server variable. --> As far as i unterstand the client only gets the current value of the variable after the publishing time expires.
But what's about the values between this time? Is there a possibility at all to read out the sampling queue? Or how can the sampling queue be used at all? I don't need to see a value change every 10ms with the client, but i want to see 5 sampled values after 50ms. This would be neat for measuring values.
Because english is not my native language feel free to critcize any rude mistakes in my writing. I will correct it then.
Thanks for any responses!