Download ModbusFB_examples.zip
Examples how to build MODBUS TCP/Serial servers and clients using the CODESYS MODBUS function block library ModbusFB.compiled-library.
The examples are based of the ModbusFB.compiled-library and the ModbusFB non standard extensions.compiled-library included in the CODESYS MODBUS package.
ModbusFB_examples.project demonstrates how to build standard MODBUS TCP/Serial servers and clients using the ModbusFB.compiled-library.
ModbusFB_non_standard_extensions_examples.project demonstrated how to use the ModbusFB non standard extensions.compiled-library to build MODBUS TCP/Serial servers and clients with an extended "data model" (wide registers >16bit) not covered by the MODBUS standard, but used in real world MODBUS devices.
ModbusFB_examples.project includes three applications on separate PLCs:
System requirements and restrictions | Info |
---|---|
Programming System | CODESYS Development System Version 3.5.16.0 recommended |
Runtime System | CODESYS Control Version 3.5.16.0 recommended |
Required Accessories | The Serial examples use two serial ports on the PLC, so you need to connect them somehow. On a WinV3 PLC you can use virtual serial port driver. |