Skip to main content

Configuring the Connection to the PLC

The connection to the controller is established by means of a gateway. This gateway can be your development computer or another network computer connected to the controller. The Communication Settings dialog is available to configure the connection path. This dialog opens automatically when you try to log in, but the communication settings have not been configured yet.

Tip

If the communication with the controller is encrypted and secured by means of user management, then you need a corresponding certificate and credentials to establish the connection to the controller. In this case, see the relevant instructions on the "Encrypting communication and Changing Security Settings" help page.

Requirement: The project can be compiled without any errors. A programmable logic controller (PLC) is inserted in the device tree. The use of a user management is required for the device, but it is not enabled.

  1. In the device tree, select the PLC and click Project → Edit Object.

    The PLC opens in the editor.

  2. Click the Communication Settings tab.

  3. On the menu bar, click Scan Network.

    The Select Device dialog opens. All available devices in the network are displayed on the left side.

  4. Select the desired device and click OK.

    A dialog prompt opens with the notice that a user management is required for the device, but it is not enabled yet. You are prompted to enable the user management if you want. The notice is displayed that in this case you have to create a new administrator account and then log in as this user.

  5. Click Yes to close the dialog prompt.

    The Add Device User dialog opens to create an initial device administrator.

  6. Define the credentials (Name and Password) for the device administrator. Select the Password can be changed by the user option.

    Important

    It is imperative that you consider the severity of the password: From within the development system, there is no way to access the controller again if you forget the password.

    Click OK to close the dialog.

    The Device User Logon dialog opens.

  7. Specify the credentials for the device administrator which you defined in the previous step.

    The connection path for the PLC is set.

Tip

You can reset the communication settings view to the original view in the CODESYS options of the device editor.

For more information, see: Encrypting Communication, Changing Security Settings