AdvancedHMI Software

General Category => Support Questions => Topic started by: larryhts on October 22, 2018, 02:18:49 PM

Title: ModbusTCP driver errors
Post by: larryhts on October 22, 2018, 02:18:49 PM
I am using AdvancedHMI apps to connect to 7 different PLC’s and a SQL Database one app per PLC. I am using the modbusTCP driver. If a PLC is turned off We get the error ”No Response from PLC” error about every 2 sec. Is there a way to limit the number of error boxes we get or stop them, It fills the screen in short order? The apps run on a server that is not monitored by people. Their purpose is to validate serial numbers for production and collect data for the database.
Title: Re: ModbusTCP driver errors
Post by: Archie on October 22, 2018, 03:09:53 PM
Are you using a MsgBox in your code or does the driver pop up the box? The driver shouldn't ever pop up a box unless something was put in by mistake.
Title: Re: ModbusTCP driver errors
Post by: larryhts on October 22, 2018, 03:26:48 PM
Yes in a try catch. Thanks Archie. I am learning slow but learning.

Thanks again.
Title: Re: ModbusTCP driver errors
Post by: Archie on October 22, 2018, 03:29:27 PM
In a case like this I would either write the error to a file or add a status bar at the bottom of the form to display the error with a time stamp.
Title: Re: ModbusTCP driver errors
Post by: larryhts on October 22, 2018, 04:09:32 PM
Thanks Archie