Skip to main content

Creating a Modbus TCP Server Project

  1. Click the Build → Create Device Project command.

  2. Specify the same path as in the Modbus TCP Client project.

  3. Choose a name for the project. The example uses ModbusTCPServerSideExample.

  4. Fill in any optional fields you need and continue.

  5. Select a controller for the project. The example uses CODESYS Control Win V3 x64.

  6. Choose a name for the controller. The example uses Device_Modbus_TCP_Server.

  7. Set the implementation language to Structured Text (ST) and confirm your selection.

  8. In the workspace navigator under Devices, right-click the controller node and select Add Device.

  9. In the Add Device dialog, select the Ethernet device and confirm the dialog. The default name will be applied automatically.

    The Ethernet node will now be available below the controller node.

  10. Right-click the Ethernet node and select Add Device.

  11. In the Add Device dialog, select ModbusTCP Server Device and confirm the dialog. The default name will be applied automatically.

    A Modbus TCP Server Device node will now be available below the Ethernet node.

Note

The creation and setup of the second project are now complete.