Running CODESYS headless as a Server?

mem-leak
2021-07-07
2021-07-07
  • mem-leak - 2021-07-07

    Hi All,

    Does any one know if it is possible to run CODESYS headlessly as a server?

    From some brief experiments I have been able to run it headlessly and pass it a single script to be executed e.g.

    "C:\Program Files\CODESYS 3.5.16.30\CODESYS\Common\CODESYS.exe" --noUI --profile='CODESYS V3.5 SP16 Patch 3' --runscript='myScript.py'
    

    This seems to start CODESYS execute the script and close the tool.

    I would like to know if it is possible to start CODESYS without the UI and to pass a series of scripts to it (not necessarily known when the CODESYS tool is started). Does the tool support this? Or does anyone have any hints about how one might do this?

    Thanks in advance.

     
    • Ingo

      Ingo - 2021-07-07

      Hi!
      The tool doesn't support it. But you already figured out how to start it
      w/o any UI. So you just need to write a script, which acts as such as
      server, and executes the other scripts.

      To execute them, I'd recommend to import them and call a method from them.
      This can be done with native python.

      Cheers,
      Ingo

       

Log in to post a comment.