Hello
We want to read multiple OPC UA items periodically. (every 1 second)
First I tried with your example "// This example shows how to subscribe to changes of multiple monitored items and display the value of the monitored item with
// each change."
But i get following errors (BadTooManySubscriptions) in my code (See Att-1 Subscripting)
OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 654370687 and will retry in 3000 ms
OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 654370703 and will retry in 3000 ms
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_DR_EING_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_AUSG_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_EING_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_DR_EING_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Unsubscribing...
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_TEMP_AUSG_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_TEMP_EING_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Waiting for 5 seconds...
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_DR_EING_SEK_WT2_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_AUSG_SEK_WT2_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Finished.
The program '[24204] app1.exe' has exited with code 0 (0x0).
After that i have tried to read without subscription , that means reading just the item values in a for loop. (Att-2 For_Loop)
(In order to see how fast i can read)
In this case I can read the valıues but every new data set is coming in appr.2 seconds. I don't know if my OPC UA server is so slow but i dont think.
Is there any default setting for this 2 seconds, that i have missed? What would you suggest for preiodicaly reading multiple tags?
We want to read multiple OPC UA items periodically. (every 1 second)
First I tried with your example "// This example shows how to subscribe to changes of multiple monitored items and display the value of the monitored item with
// each change."
But i get following errors (BadTooManySubscriptions) in my code (See Att-1 Subscripting)
OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 654370687 and will retry in 3000 ms
OpcLabs.EasyOpc.UA.UAEngineBase Error: 0 : UAClientSubscription failed at tick 654370703 and will retry in 3000 ms
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_DR_EING_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_AUSG_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_EING_SEK_WT1_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_DR_EING_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Unsubscribing...
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_TEMP_AUSG_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB99_KÜHLUNG_ISTWERTE_TEMP_EING_SEK_WT1_KUEHL" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Waiting for 5 seconds...
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_DR_EING_SEK_WT2_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
NodeId="ns=3;s=DB98_HEIZUNG_ISTWERTE_TEMP_AUSG_SEK_WT2_HEIZ" *** Failure: UA SDK error (Opc.UA.ServiceResult=0x80770000) in 'Subscription.Create'. OPC UA service result - {BadTooManySubscriptions}. The server has reached its maximum number of subscriptions. [...]
Finished.
The program '[24204] app1.exe' has exited with code 0 (0x0).
After that i have tried to read without subscription , that means reading just the item values in a for loop. (Att-2 For_Loop)
(In order to see how fast i can read)
In this case I can read the valıues but every new data set is coming in appr.2 seconds. I don't know if my OPC UA server is so slow but i dont think.
Is there any default setting for this 2 seconds, that i have missed? What would you suggest for preiodicaly reading multiple tags?