OpenPLC XML Export

slof
2020-04-22
2020-04-23
  • slof - 2020-04-22

    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.

     
  • aliazzz

    aliazzz - 2020-04-22

    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/

    Switch --compare (project compare)
    

    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

    CODESYS.exe --compare "D:\\proj\\project1.project" "D:\\proj\\project2.project"
    

    See also

    Command β€˜Compare’
    

    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
  • slof - 2020-04-23

    Thanks for the info!

     

Log in to post a comment.