AdvancedHMI Software

General Category => Support Questions => Topic started by: oqapsking on May 05, 2025, 12:04:17 PM

Title: The project becomes too laggy if the connection is lost
Post by: oqapsking on May 05, 2025, 12:04:17 PM
Hello
If i lose the connection to the plc the project becomes too laggy
I use modbus tcp
Is there a solution to fix it?

With thanks
Title: Re: The project becomes too laggy if the connection is lost
Post by: Archie on May 05, 2025, 12:51:30 PM
Are you reading and writing using VB code?
Title: Re: The project becomes too laggy if the connection is lost
Post by: oqapsking on May 05, 2025, 01:26:55 PM
yes
mostly just basic labels and buttons
Title: Re: The project becomes too laggy if the connection is lost
Post by: Archie on May 05, 2025, 01:57:53 PM
So you have some VB code performing READ directly with ModbusTCPCom1.Read ?
Title: Re: The project becomes too laggy if the connection is lost
Post by: oqapsking on May 05, 2025, 03:08:43 PM
no
there is timers but they are all off and yet the problem is there
so usualy the live data is just basic labels and buttons

Title: Re: The project becomes too laggy if the connection is lost
Post by: Archie on May 06, 2025, 12:06:13 AM
Can you explain what you mean by "laggy"?

When using only the built-in controls, the drivers and controls use background threads therefore the other items on the form should see minimal effect in response.
Title: Re: The project becomes too laggy if the connection is lost
Post by: bachphi on May 06, 2025, 08:42:09 AM
Archie's slipping, I thought the world's top mind reader could at least pick up this brainwave without a data plan! ;)

https://www.advancedhmi.com/forum/index.php?topic=1684.msg9228#msg9228

https://www.advancedhmi.com/forum/index.php?topic=3177.msg18221#msg18221