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
Choose the command
.- ⇒
The dialog box Select Device opens.
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
, you can load the source code directly to the connected device.See also
- Command ‘Source download’
- Command ‘Source download to connected device’
- Dialog box ‘Project settings’ – ‘Download source code’
Loading source code from the PLC
Choose the command
.- ⇒
The dialog box Select Device opens.
Select the controller to send the source code. Click OK.
- ⇒
The Extract Project dialog box opens.
Select the destination directory where you want to extract the project archive. Click Extract.
- ⇒
CODESYS extracts the project archive to the directory.
Then you are prompted to open the project archive. Click Yes.
- ⇒
The project opens.
See also