When CODESYS is started you can add commands in the command line which will be asserted during execution of the program. These commands start with a "/". Capitalization / use of small letters is not regarded. The commands will be executed sequentially from the left to the right.
/online |
Immediately after start, CODESYS tries to go online with the current project. |
/run |
After login, CODESYS starts the application program. Only valid in combination with /online. |
/batch |
CODESYS starts without user interface and returns the error code of the first error or the return value of the first command which is terminated with a warning. CODESYS will terminate immediately after the command file has been processed. The processing of the command file will be aborted as soon as the first command is processed with an error. Warnings do not terminate the processing. If neither errors nor warnings occur, the return value is S_OK. |
/show ... /show hide /show icon /show max /show normal |
Settings for the frame window of CODESYS can be made. The window will not be displayed, it also will not be represented in the task menu. The window will be minimized in display. The window will be maximized in display. The window will be displayed in the same status as it was during the last closing. |
/out <outfile> |
All messages are displayed in the message window and additionally are written in the file <outfile>. |
/noinfo |
No splash screen at start of CODESYS |
/userlevel <group> |
Definition of the user group (e.g. "/userlevel 0" for user group 0) |
/password <password> |
Direct input of the user group password (e.g. "/password abc") |
/openfromplc |
The project which is currently available on the connected target system, will be loaded. |
/visudownload |
If CODESYS HMI is started with a project, which does not match with the project currently available on the target system, a download will be offered. (Dialog, to be closed with YES or NO). |
/notargetchange |
A change of the target system only can be done via a command file⮫ Table 1139 “Select target system”. |
/targetfile <file>.trg |
A target description file (*.trg) can be specified. So the already installed targets will not be regarded when CODESYS is started. The commands 'File' 'New', File' 'New from template...', 'File' 'Open...' and the list of recently opened projects will not be available. Additionally the selection list in the target settings configuration dialog will not usable. |
/targetfilenosaveas <file>.trg |
In addition to the effects described for the "/targetfile" option, see above, also the menu command 'File' 'Save as...' will not be available. |
/cmd <cmdfile> |
After starting the commands of the <cmdfile> get executed⮫ “Command file (cmdfile) commands”. |
Regard the following syntax for a command line:
"<Path of codesys.exe-file>" "<Path of the project>" /<command1> /<command2> ....
Example for a command line:
The project ampel.pro gets opened, but no window opens. The commands included in the command file command.cmd will be executed.
"D:\dir1\codesys" "C:\projects\ampel.pro"
/show hide /cmd command.cmd