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.

The Graphic Editors...<br />

x will be increased by one until it reaches the value 10. This causes the output of the block LT(0) to<br />

deliver the value FALSE and SUB(3) and ADD(5) will be executed. x is set back to the value 1 and y<br />

is increased by 1. LT(0) is executed again as long as x is smaller than 10. y thus count the number of<br />

times x passes though the value range 1 to 10.<br />

'Extras' 'Properties...' in CFC<br />

Constant input parameters (VAR_INPUT CONSTANT) from functions and function blocks are not<br />

shown directly in the continuous function chart editor. These can be shown and their value can be<br />

changed when one selects the trunk of the block in question and then selects the command ‚Extras'<br />

‚Properties' or simply double clicks on the trunk. The „Edit parameters" dialog opens:<br />

Properties dialog<br />

The values of the constant input parameter (VAR_INPUT CONSTANT) can be changed. Here it is<br />

necessary to mark the parameter value in the column Value. Another mouse click or pressing on the<br />

space bar allows this to be edited. Confirmation of the change to the value is made by pressing the<br />

key or pressing rejects the changes. The button OK stores all of the changes<br />

which were made.<br />

Selecting elements in CFC<br />

One clicks on the trunk of the element to select it.<br />

To mark more elements one presses the key and clicks in the elements required, one after the<br />

other, or one drags the mouse with the left hand mousekey depressed over the elements to be<br />

marked.<br />

The command 'Extras' 'Select all' marks all elements at once.<br />

Moving elements in CFC<br />

One or more selected elements can be moved with the arrow keys as one is pressing on the <br />

key. Another possibility is to move elements using a depressed left mousekey. These elements are<br />

placed by releasing the left mousekey in as far as they do not cover other elements or exceed the<br />

foreseen size of the editor. The marked element jumps back to its initial position in such cases and a<br />

warning tone sounds.<br />

Copying elementsin CFC<br />

One or more selected elements can be copied with the command 'Edit' 'Copy' and inserted with the<br />

command 'Edit' 'Paste'.<br />

Changing connections<br />

A connection between the output of an element E1 and the input of an element E2 can easily be<br />

changed into a connection between the output of element E1 and the input of element E3. The mouse<br />

is clicked on the input of E2, the left mousekey is kept depressed, the mouse cursor is moved to the<br />

input of E3 and then released.<br />

5-40 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!