Saving a project under the same name
Requirement: The project is open. The project file is not write-protected.
-
Select “File Save”.
CODESYS saves the project file with the current project name, which appears in the title bar of the main window. If the project has been changed since it was last saved, then the project name is provided with an asterisk. If this is set in the CODESYS options in the category “Load and Save”, then a backup copy will also be made.
Saving a project under a different name or format
Requirement: The project is open.
-
Select “File Save Project as”.
The “Save Project” dialog box opens.
-
Select a storage location in the file system and the desired “File Type” (project file or library file) and the desired storage version. If you want to open the project later in an older version, then it makes sense to save for precisely this version, as you will then be informed immediately in the message window about possible data loss.
If the project file is not write protected, then CODESYS saves it in the selected path. Otherwise you will be informed how to proceed.
-
If the current project contains add-ons that are not available in the selected memory format, then the “Extend Profile” dialog box opens.
-
Select the add-ons to extend the memory profile in order for the add-on data to be saved.
-
To save the memory profile permanently, click “Save Profile” and specify a name in the “Enter profile name” dialog box.
-
In the “Extend Profile” dialog box, select the “Use saved profile” option and click “Yes”.
CODESYS saves the project with the saved profile.
Saving a read-only project
Requirement: A read-only project is open.
-
Select “File Save”.
If the write protection was assigned in CODESYS, then it will be displayed by a line in the top right corner of the main window. Depending on the current situation you will be offered one or more of the following actions so that you can still save the project:
-
“Save project under a different file name on the disk”: Always appears and continues to the “Save File” dialog box, as for the “Save File as” command
-
“Exit read-only mode”: Appears if the “Open read-only” option is selected when opening the project.
-
“Remove read-only attribute from the project on the disk”: Appears if the project file was provided with the 'Read-only' property in the local file system at the time of opening.
-
“Remove identification 'Released' in the project information”: Appears only if this attribute is currently set.
If the write protection was assigned outside of CODESYS in the properties of the project file in the file system, you will be offered the following options when you attempt to save under the same name and path:
-
“Save as”: You can save under a different name as with the “Save Project as” command.
-
“Overwrite”: The write protection is removed from the project file and the file is saved under its existing name.
-
Click on the line in the top right corner of the main window that indicates the write protection.
The current options with which you can still save the project appear in a selection menu.
-
Select one of the options offered and perform any necessary actions.
-
Click “File Save” or “File Save as”.
The project can be saved.
Saving of the project automatically; creating a backup copy
Requirement: The project is open.
-
Click “Tools Options” (category “Load and Save”.
The “Load and Save” dialog box opens.
-
Activate the “Create backup files” option.
-
Activate the “Automatically save every … minutes” option and select a time interval.
-
Click “OK” to close the “Options” dialog box.
Each time the project is saved, CODESYS also creates a backup copy
<project name>.backup
.CODESYS saves the project automatically at the specified time interval to a file
<project name>.autosave
in the project directory. If you open the project again after the development system was closed irregularly, then this file will be offered to you as an alternative to the file last saved by the user.