Is it possible to runn a batch program or C# that makes a export of a Codesys program to a OpenPLCXML file?
We do it now manualy to see what is changed in the program it self.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the command line, include this switch after the development system call to compare two CODESYS projects. First, type the project file path after the switch.
Then, type the path reference project. CODESYS starts and opens the Project Compare - Differences view.
Syntax:
--compare "<path of project file>" "<path of reference project file>"
Is it possible to runn a batch program or C# that makes a export of a Codesys program to a OpenPLCXML file?
We do it now manualy to see what is changed in the program it self.
You could use this script and search help.codesys.com for "scripting" on how to run it.
https://forge.codesys.com/tol/scripting/snippets/5/
You can also use the project compare functionality to check differences and you can script it without using C#
See : https://help.codesys.com/api-content/2/codesys/3.5.15.0/en/_cds_commandline/
In the command line, include this switch after the development system call to compare two CODESYS projects. First, type the project file path after the switch.
Then, type the path reference project. CODESYS starts and opens the Project Compare - Differences view.
Syntax:
--compare "<path of project file>" "<path of reference project file>"
Example
See also
So in order to check differences programmatically you do not have to export an .openxml, as long as you have saved two versions of your project
Last edit: aliazzz 2020-04-22
Thanks for the info!