ClassicDIY / ModbusTool

A modbus master and slave test tool with import and export functionality, supports TCP, UDP and RTU.
Apache License 2.0
640 stars 193 forks source link

Established connection was aborted by host #22

Open mjkl-gh opened 2 years ago

mjkl-gh commented 2 years ago

Unfortunately, I am writing this issue at the office away from the machine on which this happened. Therefore, the only information i got is from my own memory. However, I am quite sure it was caused by something on my laptop.

What would happen is if I tried to read an input or holding register I would get the message "Established connection was aborted by host" If I would set the action to poll (interval of 2000) and then reconnect, it would read the first 2 intervals fine and then return the same error.

Any idea on what might cause this?

thoblerone commented 2 years ago

Hi there, it's hard to tell guess without further details. Did you run both master and slave programs on the same computer? Or maybe did you run both any single component from this project against some "real" data device or program?

Assuming you have used this projects master and slave, even on different computers, when you read the registers in the master program and get the error message, what do you see in the in the log window of the slave?

mjkl-gh commented 2 years ago

Hi there, it's hard to tell guess without further details. Did you run both master and slave programs on the same computer? Or maybe did you run both any single component from this project against some "real" data device or program?

Assuming you have used this projects master and slave, even on different computers, when you read the registers in the master program and get the error message, what do you see in the in the log window of the slave?

I ran it against a "Real" Wago PFC100 which is a Linux-based PLC programmed using their custom Codesys flavor: E-Cockpit. Unfortunately, I don't have any remote access and will not visit the site in the foreseeable future. So yeah I know it is not a lot to go on.

mjkl-gh commented 2 years ago

Just tried something else

Using both this project's master and slave the error doesn't seem to occur. Which is quite weird.

Using a different client (Universal Robot UR3) which was the intended us on site did not generate any errors

fahara02 commented 1 year ago

hi i am facing same issue with a uno modbus slave . any solution yet?