stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.33k stars 1.71k forks source link

libmodbus + win7 --> problem #73

Closed ghost closed 12 years ago

ghost commented 12 years ago

I use Wago 750-342 (http://www.wago.com/wagoweb/documentation/750/eng_manu/342/m034200e.pdf) for a testing device. They ship for Modbus communiction their own dll (MBT.dll). But there is a problem using this with Modbus-TCP on Win7. After some write/read-cycles the connection breaks up. UDP works, but I want to use TCP, to get propper handshakes...

The testsoftware is programmed in VBA(Excel) (I know this sounds strange, but I work in an industry-company and they have some necessary data in Excel-Sheets, so I use VBA )

So I programmed an "adapter" to connect the Modbus.dll from libmodbus to VBA. This works fine so far an writing and reading works almost perfectly to the hardware. "Almost", because I have the same problem as with the MBT.dll from Wago. After certain cycles (always the same number) the communication breaks up.

My libmodbus-version is 3.0.3 and I used MinGW to compile sources and the "adapter" (which is also a dll) is also comiled using gcc on MinGW.

So the problem seems to be the same like I had with MBT.dll.

Do you have any idea how to solve this??? Is maybe possible to compile to 64 bit (didn't see that). Is winsock2 the problem?

stephane commented 12 years ago

Please use the mailling list to talk about issue, the issue tracker is reserved for clear bug.