Downloading Source Code to and from the PLC

CODESYS provides the capability of loading project source code to a PLC as a project archive. You can then transfer this project archive back to the development system from the PLC as needed.

Requirement: The connection settings are configured for the affected controllers.

Downloading source code to the PLC

  1. Choose the command File ‣ Source download.

    The dialog box Select Device opens.

  2. Select the controller to receive the source code. Click OK.

    CODESYS writes the archive file Archiv.prj to the controller.

Note

By choosing the command Online ‣ Source download to connected device, you can load the source code directly to the connected device.

See also

Loading source code from the PLC

  1. Choose the command File ‣ Source upload.

    The dialog box Select Device opens.

  2. Select the controller to send the source code. Click OK.

    The Extract Project dialog box opens.

  3. Select the destination directory where you want to extract the project archive. Click Extract.

    CODESYS extracts the project archive to the directory.

  4. Then you are prompted to open the project archive. Click Yes.

    The project opens.

See also