Skip to main content

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. Click File → Source Download.

    The Select Device dialog opens.

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

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

Tip

You can click Online → Source Download to Connected Device to download the source code directly to the connected device.

For more information, see: Source Download

Uploading source code from the PLC

  1. Click File → Source Upload.

    The Select Device dialog opens.

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

    The Extract Project dialog 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.