FreeMODBUS
A portable MODBUS ASCII/RTU and TCP implementation
A portable MODBUS ASCII/RTU and TCP implementation
The Win32 port can be used to implement a Windows Modbus Slave. It was the first port which supports the new Modbus/TCP functionallity added in release 0.7.
The basic operation of the protocol stack is the same as for embedded platforms. One typically wants to create a thread in which the main Modbus polling loop function is called. For a Modbus RTU/ASCII example see demo.c. A Modbus TCP example is available in demo.c. Embedding this protocol stack in a DLL should be fairly easy so usage from LabView or other tools should be possible.