Getting Started with Python for CODESYS

See below for an simple application of a Python script in CODESYS:

  1. In any text editor, create a text file hello.py with the following contents:

    print("Hello, automation!")

  2. Start CODESYS a click Tools ‣ Scripting ‣ Execute script file . Select the file hello.py in the file system.

    ⇒ See the result in the message view:

For more detailed examples of Python scripts for different use cases with CODESYS, refer to the following help pages:

See also