Author Topic: ModbusTCP driver errors  (Read 627 times)

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
ModbusTCP driver errors
« 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: ModbusTCP driver errors
« Reply #1 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.

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: ModbusTCP driver errors
« Reply #2 on: October 22, 2018, 03:26:48 PM »
Yes in a try catch. Thanks Archie. I am learning slow but learning.

Thanks again.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: ModbusTCP driver errors
« Reply #3 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.

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: ModbusTCP driver errors
« Reply #4 on: October 22, 2018, 04:09:32 PM »
Thanks Archie