24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix F: Command Line-/Command File<br />

Appendix F: Command Line-/Command File<br />

10.20 Command Line Commands<br />

When CoDeSys is started, you can add commands in the command line which will be asserted during<br />

execution of the program. These commands start with a "/". Capitalization/Use of small letters is not<br />

regarded. The commands will be executed sequentially from the left to the right.<br />

/online<br />

/run<br />

/show ...<br />

/show hide<br />

/show icon<br />

/show max<br />

/show normal<br />

/out <br />

/noinfo<br />

/cmd <br />

Immediately after start CoDeSys tries to go online with the current<br />

project.<br />

After login CoDeSys starts the application program.<br />

Only valid in combination with /online.<br />

Settings for the CoDeSys frame window can be made.<br />

The window will not be displayed, it also will not be represented in the<br />

task menu.<br />

The window will be minimized in display.<br />

The window will be maximized in display.<br />

The window will be displayed in the same status as it was during the<br />

last closing.<br />

All messages are displayed in the message window and additionally are<br />

written in the file .<br />

No splash screen at start of CoDeSys<br />

After starting the commands of the get executed.<br />

Example for a command line:<br />

The project ampel.pro gets opened, but no window opens. The commands included in the command<br />

file command.cmd will be executed.<br />

"D:\dir1\codesys" "C:\projects\ampel.pro" /show hide /cmd command.cmd<br />

10.21 Command File (cmdfile) Commands<br />

See the following table for a list of commands, which can be used in a command file (). The<br />

command file you then can call by a command line (see above). Capitalizing/Use of small letters is not<br />

regarded. The command line will be displayed as a message in the message window and can be<br />

given out in a message file (see below). Additionally to the command a "@" is prefixed. All signs after<br />

a semicolon (;) will be ignored (comment). Keywords can be used in the command parameters. A list<br />

of the keywords you find subsequent to the following tables of command descriptions.<br />

Commands for controlling the subsequent commands:<br />

onerror continue<br />

onerror break<br />

The subsequent commands will be executed even if an error occurs.<br />

The subsequent commands will not be executed any more if an error<br />

has been detected.<br />

Commands of the online menu:<br />

online login<br />

online logout<br />

Login with the loaded project ('Online Login')<br />

Logout ('Online' 'Logout')<br />

CoDeSys V2.3 10-67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!