Creating a Comparison View

Requirement: You have made changes in your current project and wish, for example, to compare it with the last-saved version. In the meantime, for example, you have added further POUs, removed a POU, changed single lines of code or the object properties in function blocks.

  1. Select the command Project ‣ Compare .

    ⇒ The Project Comparison dialog box opens.

  2. Enter the path to the reference project, for example the path to the last-saved version of your current project.

  3. Leave the activation of the comparison option Ignore Spaces as it is.

  4. Click on OK.

    ⇒ CODESYS opens the comparison view. Title: Project Comparison – Differences. The Device trees of the current project and the reference project are displayed alongside each other and the changed objects are marked in color.

  5. Select an object marked in blue in the tree of the reference project (right). The current project no longer contains this object.

    Click on Accept Single

    ⇒ CODESYS adds the object to the tree of the current project (left). The line has a yellow background. appears in the middle column.

  6. Select an object marked in green in the tree of the current project (left). The reference project does not contain this object.

    Click on Accept Single

    ⇒ CODESYS removes the object again from the tree of the current project (left). The line has a yellow background. appears in the middle column.

  7. If CODESYS detects changes in the content of an object that is contained in both the current project and the reference project, this is indicated by red lettering. You can then switch to the detailed comparison view for the object by double-clicking on the object.

  8. Close the comparison view and answer the query whether the changes made are to be saved with Yes.

    ⇒ The changes become effective in the project.

See also