Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Invoking codesys compiler from batch

dam
2015-11-24
2015-12-10
  • dam - 2015-11-24

    Hi,

    I would like to know if it is possible to compile a program and upload it to the PLC via batch command line?
    The idea is to be able to switch from different versions automatically.

    Regards

     
  • dam - 2015-12-07

    Bump.

     
  • Yegor - 2015-12-07

    It should be something along the lines of```

    "C:\Program Files (x86)\3S Software\CoDeSys V2.3\Codesys.exe" /batch /cmd build_and_run.cds file.pro

    build_and_run.cds

    project build
    online login
    online run

    ```The problem is I can't get it to log in silently. The query and replace commands don't seem to help at all, even though I do remember them working a year ago. Anyway, you should probably read these two entries in the help file yourself, if you haven't done it yet:

    IMG: commandfile.png

     
  • dam - 2015-12-10

    Thank you very much!

    Regards

     

Log in to post a comment.