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.

4 - The Individual Components<br />

Options for Log<br />

If you choose this category in the Options dialog box, then you get the dialog box shown below.<br />

In this dialog, you can configure a file that acts as a project log, recording all user actions and internal<br />

processes during Online mode processing (see also: Log).<br />

If an existing project is opened for which no log has yet been generated, a dialog box opens which<br />

calls attention to the fact that a log is now being set up that will receive its first input after the next<br />

login process.<br />

The log is automatically stored as a binary file in the project directory when the project is saved. If you<br />

prefer a different target directory, you can activate the option Directory for project logs: and enter<br />

the appropriate path in the edit field. Use the<br />

this purpose.<br />

Option dialogue for the category Log<br />

button to access the "Select Directory" dialog for<br />

Options for Build<br />

The log file is automatically assigned the name of the project with the extension .log. The maximum<br />

number of Online sessions to be recorded is determined by Maximum project log size. If this<br />

number is exceeded while recording, the oldest entry is deleted to make room for the newest.<br />

The Log function can be switched on or off in the Option field Activate logging.<br />

You can select in the Filter area which actions are to be recorded: User actions, Internal actions,<br />

Status changes, Exceptions. Only actions belonging to categories checked here will appear in the Log<br />

window and be written to the Log file. (For a description of the categories, please see Log).<br />

The Log window can be opened with the command 'Window' 'Log'.<br />

If you choose this category in the Options dialog box , then you get the dialog box shown below.<br />

Debugging: Additional debugging code is created, that is the code can become considerably larger.<br />

The debugging code is needed in order to make use of the debugging functions offered by CoDeSys<br />

(e.g. breakpoints). When you switch off this option, project processing becomes faster and the size of<br />

the code decreases. The option is stored with the project.<br />

Replace constants: The value of each constant is loaded directly, and in Online mode the constants<br />

are displayed in green. Forcing, writing and monitoring of a constant is then no longer possible. If the<br />

option is deactivated, the value is loaded into a storage location via variable access (this does in fact<br />

allow writing the variable value, but implies longer processing time).<br />

Nested comments: Comments can be placed within other comments. Example:<br />

(*<br />

a:=inst.out; (* to be checked *)<br />

b:=b+1;<br />

*)<br />

CoDeSys V2.3 4-9

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

Saved successfully!

Ooh no, something went wrong!