Author Topic: Using Standard VB objects with HMI  (Read 9692 times)

Jesse

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Using Standard VB objects with HMI
« Reply #15 on: September 17, 2013, 10:45:52 AM »
Ended up not using that code to disable text boxes and I got my program working for the most part except now when I run it the first time I put in values and send to CLX and it works fine, though if I try to change anything and send a new set of values I get an error in your code from the CLXethernet driver code


           SyncLock (ReadLock)
            DLL(MyDLLInstance).WriteTagValue(tag, StringVals, 1, TNS)
        End SyncLock


There Error I get here says Send que full, may have lost connection or data request too fast.

Any idea why I would be getting that?
« Last Edit: September 17, 2013, 11:00:44 AM by Jesse »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Using Standard VB objects with HMI
« Reply #16 on: September 17, 2013, 11:44:32 AM »
That generally means that over 30 read/write requests are being sent faster than the PLC can respond to them. If you are using a lot of back to back read or writes, try putting this in between about every 10

System.threading.thread.sleep(50)