Skip to main content

Save Project

Saving a project under the same name

Requirement: The project is open. The project file is not write-protected.

  • Click File → Save Project.

    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 Load and Save category, then a backup copy will also be made.

Storage format

The storage format of a project is the profile of the CODESYS Development System which is used to save the project after it is created or later modified. This profile contains the version information of all plug-ins of this CODESYS installation and therefore also of all add-ons which are included in exactly this CODESYS installation.

When a project is saved using the Save Project command, the storage format is not automatically updated.

The storage format is updated only in the following cases:

  • You save a project using the Save Project as command and you select a different storage format in the Save as type list box.

  • A project is open in a CODESYS installation which has a different storage format than the project:

    If then the Do you want to update the storage format of the project to <storage format> dialog opens when you are editing this project, then click Yes to continue and click Save Project to save the project.

The storage format of a project is displayed in ProjectProject Information, on the File tab.

Saving a project under a different name or storage format

Requirement: The project is open.

  1. Click File → Save Project as.

    The Save Project dialog opens.

  2. Select a location in the file system and the desired Save as 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 immediately notified in the message view 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.

  3. If the current project contains add-ons which are not contained in the desired memory format, then the Extend Profile dialog opens.

  4. Select the add-ons to extend the memory format in order for the add-on data to be saved.

  5. To save the memory format permanently, click Save Profile and specify a name in the Enter Profile Name dialog.

  6. In the Extend Profile dialog, select the Use saved profile option and click Yes.

    CODESYS saves the project with the saved profile and with it also the new storage format. The new storage format is displayed on ProjectProject Information, File tab.

Saving a read-only project

Requirement: A read-only project is open.

  • Click File → Save Project.

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 Project dialog, as for the Save Project as command

  • Exit read-only mode: Displayed if the Open read-only option is selected when opening the project

  • Remove read-only attribute from the project on the disk: Displayed if the project file was provided with the "Read-only" property when it was opened in the local file system

  • Remove identification "Released" in the project information: Displayed 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 Project 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.

  1. Click 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.

  2. Select one of the options offered and perform any necessary actions.

  3. Click File → Save Project or File → Save Project as.

    The project can be saved.

Saving of the project automatically; creating a backup copy

Requirement: The project is open.

  1. Click Tools → Options and the Load and Save category.

    The Load and Save dialog opens.

  2. Activate the Create backup copy option.

  3. Select the Automatically save every … minutes option and select a time interval.

  4. Click OK to close the Options dialog.

    Each time the project is saved, CODESYS also creates a backup copy named <project name>.backup.

    CODESYS automatically saves the project 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.

For more information, see: Dialog: Options – Load and Save and Protecting and Saving Projects