Creating Comparison Views
Requirement: You have made changes in your current project and want to compare it, for example, with the last saved version. In the meantime, you have, for example, added more POUs, removed a POU, changed some lines of code in POUs, or the object properties.
Click
The Project Comparison dialog opens.
Specify the path of the reference project, for example, the path of the last saved version of your current project.
Leave the Ignore Whitespace comparison option enabled.
Click OK.
CODESYS opens the comparison view.
Title: Project Comparison – Differences
The device trees of the current project and the reference project are compared and the changed objects are highlighted in color.
In the reference project tree (right), select an object highlighted in blue. This object is no longer included in the current project.
Click
Accept Single.
CODESYS adds the object in the tree of the current project (left). The line is highlighted in yellow. The
symbol is displayed in the middle column.
In the current project tree (left), select an object highlighted in green. This object is not included in the reference project.
Click
Accept Single.
CODESYS removes the object from the tree of the current project again (left). The line is highlighted in yellow. The
symbol is displayed in the middle column.
If CODESYS has detected changes in the contents for an object which is included in the current project and in the reference project, then this is indicated by red text. Then you can double-click the object to switch to the detailed comparison view of the object.
Close the comparison view and answer Yes to the question whether the changes made should be saved.
The changes will take effect in the project.
For more information, see: Opening the Detailed Comparison View