Home

u-meyer

Download ModbusFB_examples.zip

MODBUS examples

Examples how to build MODBUS TCP/Serial servers and clients using the CODESYS MODBUS function block library ModbusFB.compiled-library.

Product description

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.

More information

ModbusFB_examples.project includes three applications on separate PLCs:

  • Example_BasicOverview gets you an overview of the existing functions blocks anh how to use / combine the in ST / CFC
  • Example_Serial demonstrates how to build MODBUS Serial servers and clients
  • Example_TCP demonstrates how to build MODBUS TCP servers and clients

System requirements and restrictions

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.