Skip to main content

Creating a Workspace and Modbus TCP Client Project

  1. Start CODESYS 4.

  2. Use the Create Workspace command to create a new workspace.

  3. In the Add Project to Workspace dialog, select the Create Device Project command.

  4. Set the path of the project to the same path as the workspace.

  5. Choose a name for the project. The example uses ModbusTCPClientSideExample.

  6. Fill in any optional fields you need and press the Create button to confirm.

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

  8. Choose a name for the controller. The example uses Device_Modbus_TCP_Client.

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

    The workspace and the Modbus TCP Client project will now be created.

Note

In this sample project, the default names are used for all devices, except for the names of the controllers.