You can start the command line with the following options and arguments.
Syntax:
<folder>Automation Builder.exe --<option>
Paths or option parameters must be written inside straight quotation marks when they contain spaces, dashes, or slash marks.
Option --culture
(language of the user interface)
CODESYS is started in the specified language.
Syntax:
--culture=<culture>
<Culture>
: Typical language codes are as follows: de, en, fr, it, es, zh-CHS.
Example
Starting CODESYS with the user interface in English:
Automation Builder.exe --culture=en
See also
-
linktarget doesn't exist but @y.link.required='true'
Option --profile
(CODESYS profile)
CODESYS is started directly with the specified profile. When you start CODESYS without this option, the “Select Profile” opens.
Syntax:
--profile="<profile name>"
<profile name>
: You have to specify the profile name exactly as it is displayed in the “Help About” splash screen of the development system or in the start menu on your computer.
Example
Automation Builder.exe --culture=de --profile="Automation Builder 2.5"
Option --compare
(start project comparison)
After CODESYS is started, the comparison of two CODESYS projects is begun immediately. Type the path of the project file as arguments after the option and then the path of the reference project. CODESYS starts and opens the “Project Comparison - Differences” view.
Syntax:
--compare="<path of project file>" "<path of reference project file>"
Example
Automation Builder.exe --compare "D:\proj\project1.project" "D:\proj\project2.project"
See also
Option --project
(open CODESYS project)
CODESYS is started and the specified project is opened.
Syntax:
--project="<path of project file>"
<path of project file>
: File path of project
Example
Open the test
project:
Automation Builder.exe --culture=de --project="D:\projects\test.project"
See also
Option --projectarchive
(open CODESYS project archive)
CODESYS is started, the specified project archive is extracted, and the project is opened.
Syntax:
--projectarchive="<path of project archive file>"
<path of project archive file>
: File path of project archive
Example
Extract the test.projectarchive
and open the project in the development system:
Automation Builder.exe --projectarchive="D:\projects\test.projectarchive"
See also
Option --runscript
(run script)
The specified script file is run by CODESYS.
|
CODESYS runs the You have to provide the complete path of the script file. |
|
Use this option with the |
|
Use this option with the The CODESYS user interface is not opened. CODESYS prints all errors, warnings, compiler reports, and command-line messages generated
from the script. The script messages (1: Severity Text) can be separated from other
messages (2: Severity FatalError, Error, Warning, Information) with the " |
|
Use this option with the |
|
Use this option with the If you do not specify |
|
Use this option with the
|
Examples of using transfer parameters in script files with 'sys.argv'
start /b /wait Automation Builder.exe
--runscript="D:\Script\ArgvAnd__main__Test.py"
--scriptargs:'username password 3.14 "path=\"C:\temp\\"'
Script file: ArgvAnd__main__Test.py
from __future__ import print_function import sys print("sys.argv: ", len(sys.argv), " elements:") for arg in sys.argv: print(" - ", arg) print() print("__name__: ", __name__)
Output result: stdout
:
sys.argv: 6 elements: - D:\TestScripts\ArgvAnd__main__Test.py - username - password - 3.14 - path= "C:temp" __name__: __main__
For more information about the __name__
global variable, see the Python documentation.
Examples of the message output
start /b /wait Automation Builder.exe --runscript="D:\Script\AmpelTest.py" --noUI 1>ScriptMessages.txt
CODESYS passes all messages that are generated by the script to the ScriptMessages.txt
file. Other messages are printed to the command line.
start /b /wait Automation Builder.exe --runscript="D:\Script\AmpelTest.py" --noUI 2>NUL
CODESYS suppresses all messages, except for script messages. The script messages are printed to the command line.
Example of option --scriptdebugger
The following initdebug.py
script was tested successfully with pydevd
-based debuggers, such as PyDev / LiClipse and PyCharm. To use this script, start
CODESYS with the following command line:
--profile="Fanta Development Build" --scriptdebugger="D:\test\charmdebug\initdebug.py"
File: initdebug.py
:
from _future_ import print_function from _future_ import unicode_literals import sys sys.path.append(r"D:\test\Env2\Lib\site-packages\pycharm-debug.egg") import pydevd def scriptdebuggersetup(): pydevd.settrace('localhost', port=51234, stdoutToServer=True, stderrToServer=True) def scriptdebuggershutdown(): pydevd.stoptrace()
Option --ignorewhitespace
(ignore whitespace in project comparison)
If you add this option after the option --compare <project1> <project2>
, then whitespace is ignored in the project comparison. Note that semantically relevant
spaces, for example in STRING
literals, are still taken into account.
Syntax
--compare="<path of project file>" "<path of reference project file>" --ignorewhitespace="true"|"false"
Example
Automation Builder.exe --compare "D:\proj\project1.project" "D:\proj\project2.project" --ignorewhitespace="true"
See also
Option --ignorecomments
(ignore comments in project comparison)
If you add this option after the option --compare <project1> <project2>
, then comments are ignored in the project comparison.
Syntax:
--compare="<path of project file>" "<path of reference project file>" --ignorecomments="true"|"false"
Example
Automation Builder.exe --compare "D:\proj\project1.project" "D:\proj\project2.project" --ignorecomments="true"
See also
Option --ignoreproperties
(ignore object properties in project comparison)
If you add this option after the option --compare <project1> <project2>
, then object properties (permissions, compile settings, directories, bitmaps, etc.)
are ignored in the project comparison.
Syntax:
--compare="<path of project file>" "<path of reference project file>" --ignoreproperties="true"|"false"
Example
Automation Builder.exe --compare "D:\proj\project1.project" "D:\proj\project2.project" --ignoreproperties="true"
See also
Option --skipunlicensedplugins
(do not load components without a license)
CODESYS is started. In this case, the query as to whether unlicensed components should still be loaded is skipped. If so, then CODESYS does not load these components by implication.
Example
Automation Builder.exe --skipunlicensedplugins
Option --signaturethumbprint
(thumbprint of the certificate which is used for signing compiled libraries)
If you add this option after the option --project="<path of project file>"
, then the project is opened and the thumbprint of the certificate for signing compiled
libraries is passed.
Syntax:
--signaturethumbprint="<thumbprint of digital signature>"
Example
Automation Builder.exe --project="D:\projects\test.project" signaturethumbprint="3E96C9B61010CBDC3186021A1CAA64946DDCAAF3"
See also
Option --enforcesignedcompiledlibraries
(enforce signing of compiled libraries)
If you add this option after the option --project="<path of project file>"
, then the “Enforce signing of compiled libraries” option is enabled in the project in the “Security Screen” on the “User” tab.




NOTICE

When the “Security Screen” is opened and closed, the current settings are applied in the user options, even when no active changes have been made.
Syntax:
--enforcesignedcompiledlibraries="true"|"false"
Example
Automation Builder.exe --project="D:\projects\test.library" --enforcesignedcompiledlibraries="true"
See also
Option --timestampingserverurl
(set the time stamp server address)
If you add this option after the option --project="<path of project file>"
, then the Internet address of the RFC-3161 time stamp server (“Timestamping server”) is set
in the project in the “Security Screen” on the “User” tab.




NOTICE

When the “Security Screen” is opened and closed, the current settings are applied in the user options, even when no active changes have been made.
Syntax:
--timestampingserverurl="<URL of RFC-3161 timestamping server>"
Example
Automation Builder.exe --timestampingserverurl="http://timestamp.comodoca.com/rfc3161"
See also