24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 - The Individual Components<br />

The button Replace all replaces every occurrence of the text in the field Find next after the current<br />

position with the text in the field Replace with. At the end of the procedure a message announces<br />

how many replacements were made.<br />

Dialog box for find and replace<br />

'Edit' 'Input Assistant'<br />

Shortcut: <br />

This command provides a dialog box for choosing possible inputs at the current cursor position in the<br />

editor window. In the left column choose the desired input category, select the desired entry in the<br />

right column, and confirm your choice with OK. This inserts your choice at this position.<br />

The categories offered depend upon the current cursor position in the editor window, i.e. upon that<br />

which can be entered at this point (e.g. variables, operators, POUs, conversions, etc.).<br />

If the option With arguments is active, then when the selected element is inserted, the arguments to<br />

be transferred are specified with it, for example: function block fu1 selected, which defines the input<br />

variable var_in: fu1(var_in:=);<br />

Insertion of function func1, which uses var1 and var2 as transfer parameters: func1(var1,var2)<br />

It is basically possible to switch between structured and unstructured display of the available<br />

elements. This occurs through activation/deactivation of the Structured Display option.<br />

Note:<br />

For inserting identifiers you also can use the Intellisense functionality.<br />

'Edit''Autodeclare'<br />

Shortcut: +<br />

This command opens the dialog for the declaration of a variable. This dialog also opens automatically<br />

when the option 'Project' 'Options' 'Editor' 'Autodeclaration' is switched on and when a new undefined<br />

variable is used the declaration editor.<br />

'Edit' 'Next error'"<br />

Shortcut: <br />

After the incorrect compilation of a project this command can show the next error. The corresponding<br />

editor window is activated and the incorrect place is selected. At the same time in the message<br />

window the corresponding error message is shown.<br />

'Edit' 'Previous error'"<br />

Shortcut: +<br />

After the incorrect compilation of a project this command shows the previous error. The corresponding<br />

editor window is activated and the incorrect place is selected. At the same time in the message<br />

window the corresponding error message is shown.<br />

CoDeSys V2.3 4-51

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

Saved successfully!

Ooh no, something went wrong!