AdvancedHMI Software
General Category => Support Questions => Topic started by: sts69 on September 23, 2013, 09:08:47 PM
-
Hi,
can be compensated with simple adjustments in the ModbusTCP driver poor latencies of the network?
Often there are error messages in the buttons and Displays :-(
I have at the moment 600ms polling intervals (less would be bad).
THX
Steffen
-
Are you doing any read/writes in code? If so, is any of it on background threads? About how many addresses are you accessing? Do you have multiple instances of the driver, like multiple forms with a driver on each form?
Even on really slow networks, 600ms should be easily handled. There may be something else in the code the driver doesn't agree with. The Modbus driver hasn't been upgraded yet to be thread safe, so there are situations that can give it problems.
-
I read 16 digital Inputs and 16 Register (Counters) and i read/write 8 coils. I m not write any code in Background. My Lan is very old (Thin Ethernet). The Modbusdriver has one Instance in one Form only.
I suppose the connection sometimes breaks off and is not automatically rebuilt. after a restart then goes again for some time.
thanks for Help
Steffen
-
Hi Steven, yes I have the same problem getting Com Fail 20 after a while. I do monitor directly through the internet to the devices though. I've been giving it some thought myself as you say when you reset/reload the form it is fine for a while. I've tried a button with refresh but no joy.
My thoughts are to try and make it when it sees Com Fail 20 to auto reset that individual PLC value.... But i'm not quite sure how to do it.
-
The ModbusTCP driver was developed mostly on a simulator, so it never really got the rigorous testing of network dropouts and missed packets. As soon as I get the opportunity, I'll run it through some tests to try to duplicate bad network conditions to see if I can track down why it doesn't seem to recover properly.
-
@ TSLJon,
yes, this is the Error (Com Fail 20).
@ Archie,
on the Simulator is all very good.
I will be testing with a better network, but a fault tolerant driver would certainly be good :-)
vielen dank für das super programm!
Steffen
-
Hi Archie, thank you. Happy to contribute towards a separate ModbusTCP donation pot if that helps?
Or can log Wireshark if needed on my live network. As we pull directly through the internet I am going to put some traffic prioritisation on the routers as well.
Really pleased with AdvancedHMI :)
-
I'm unsure of the code to restart the process but at Line 420 of ModbusTCPCom.vb as shown below:
Else
Throw New MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException("Com Fail - " & result)
End If
Could be not get it to simply just resubmit the request? As in go back to the start?