Requirement: A project is open with an application that is running on the required
device. In addition, for this example an external file myExternalFile.txt
is inserted as an object below the application. This file is downloaded to the PLC
implicitly when downloading the application.
-
Open the device editor by double-clicking the device entry in the device tree. Click the “Backup and Restore” tab.
The tab is displayed. It contains a menu bar including the “Backup” and “Restore” menus.
-
In the “Backup” menu, click “Read Backup Information from Device”.
If the PLC is not connected at the moment, then CODESYS opens a temporary connection to the device and reads the relevant files from the
$PlcLogic$
directory of the PLC into a table in the lower part of the tabbed page. In this example, at least the following files will be listed:$PlcLogic$/Application/Application.app
,$PlcLogic$/Application/Application.crc
, and$PlcLogic$/Application/myExternalFile.txt
. In addition, other external, project-dependent files are listed, which have been inserted below the application in the device tree. Furthermore, the source code archive file$PlcLogic$/Archive.prj
is listed if you have set the project setting for this (“Implicitly at program download and online change”) as the loading time. -
In the table, clear the check box for the
$PlcLogic$/Application//myExternalFile.txt
file in the “Active” column. -
In the “Backup” menu, click “Save Backup File to Device”.
The “Save as” dialog opens. The file type is predefine as “Backup files (*.tbf)”.
-
Select a location for the backup file and click “Save”.