Author Topic: Subscribe limit  (Read 522 times)

msurma

  • Newbie
  • *
  • Posts: 2
    • View Profile
Subscribe limit
« on: September 19, 2019, 01:26:05 PM »
Subscribe seems to have a hard limit of 21 Subcribed tags.

I am using Subscribe as follows:
        public EthernetIPforCLX PLCConnection;
...
                PLCConnection.SubscriptionDataReceived += tagUpdate;  //
                PLCConnection.PollRateOverride = 500;
...
            PLCConnection.Subscribe("myTag1", 1, tagUpdate);
            PLCConnection.Subscribe("myTag2", 1, tagUpdate);
...
            PLCConnection.Subscribe("myTag21", 1, tagUpdate);

When I add one more Subscribe, the driver seems to fail, nothing seems to work correctly. The subscription data recieved starts sending error -22 (no response from PLC), direct reads and writes no longer work. What's up?
« Last Edit: September 19, 2019, 01:28:29 PM by msurma »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Subscribe limit
« Reply #1 on: September 19, 2019, 01:49:43 PM »
What version are you using?

msurma

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Subscribe limit
« Reply #2 on: September 19, 2019, 01:58:06 PM »
The CLXDriver.dll version is 1.3.2.

I worked around the problem by creating and initializing another EthernetIPforCLX object (PLCConnection2)  and subscribing 20 tags to the first one and additional tags to the second one.

That seems to work fine. I left all other references pointed to the first EthernetIPforCLX (PLCConnection).
« Last Edit: September 19, 2019, 02:00:22 PM by msurma »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Subscribe limit
« Reply #3 on: September 19, 2019, 03:45:07 PM »
I am not able to replicate this. What PLC and firmware are you using?

Are the tags you have the problem with actually named MyTagxx ?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Subscribe limit
« Reply #4 on: September 19, 2019, 04:35:52 PM »
I did get a problem when using longer tag names. The driver was calculating packet length incorrectly. If you send an email to the sales email giving your receipt number and request a version update, you can get the fix to this.