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?
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?