Changing the compiler version

The version of the compiler with which code is generated in the current project for use on the target device is defined in the project settings.

The compiler version is independent of the CODESYS version. Hence, constant application code is created from the source code when the compiler version is set the same, even if this takes place from different CODESYS versions.

Attention

Pay attention to the setting Do not update on the Compiler version tab in the Project Environment dialog box: if this is activated and you open an older project, for which the Newest compiler version is still set, then CODESYS will continue to use the compiler version used last in the old project. This also applies if a different “current” version is defined in the new environment!

Note

If you open a project in which the newest compiler version is not set, the Project Environment dialog box appears with a corresponding note and the possibility to update directly.

Requirement: A project is open.

  1. Select the command Project ‣ Project Settings and then the Compile options tab.

  2. Select the desired Fix Version and click on OK.

    The change is immediately effective.

See also