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.

The Graphic Editors...<br />

Network<br />

Even with the object zoomed, cursor positions in the editors can be further selected and even reached<br />

with the arrow keys. Text size is governed by the zoom factor and the font size that is set.<br />

The execution of all editor menu features (e.g. inserting a box) as a function of cursor position is<br />

available at all zoom levels, taking the same into account.<br />

In Online mode, each object is displayed according to the zoom level that has been set; Online<br />

functionality is available without restriction.<br />

When the IntelliMouse is used, an object can be enlarged/reduced by pressing the key and<br />

at the same time turning the wheel forward or backwards.<br />

In the LD and FBD editors, the program is arranged in a list of networks. Each network is designated<br />

on the left side by a serial network number and has a structure consisting of either a logical or an<br />

arithmetic expression, a program, function or function block call, and a jump or a return instruction.<br />

Label<br />

Each network has a label that can optionally be left empty. This label is edited by clicking the first line<br />

of the network, directly next to the network number. Now you can enter a label, followed by a colon.<br />

Network Comments, Networks with Linebreaks, 'Extras' 'Options'<br />

Every network can be supplied with a multi-lined comment. In the dialog 'Function Block and Ladder<br />

Diagram Options', which can be opened by executing the command 'Extras' 'Options', you can do the<br />

settings concerning comments and linebreaks:<br />

In the maximum comment size field you can enter the maximum number of lines to be made<br />

available for a network comment (The default value here is 4.) In the field minimum comment size<br />

you can enter the number of lines that generally should be reserved for . If, for example, the number 2<br />

is entered, then, at the start of each network there will be two empty lines after the label line. The<br />

default value here is 0, which has the advantage of allowing more networks to fit in the screen area.<br />

If the minimal comment size is greater than 0, then in order to enter a comment you simply click in the<br />

comment line and then enter the comment. Otherwise you first must select the network to which a<br />

comment is to be entered, and use 'Insert' 'Comment' to insert a comment line. In contrast to the<br />

program text, comments are displayed in grey.<br />

In the Ladder editor you can also assign an individual comment to each contact or coil. For this<br />

activate the option Comments per Contact and insert in the edit field Lines for variable comment<br />

the number of lines which should be reserved and displayed for the comment. If this setting is done, a<br />

comment field will be displayed in the editor above each contact and coil where you can insert text.<br />

If the option Comments per Contact is activated, then in the Ladder editor also the number of lines<br />

(Lines for variable text :) can be defined which should be used for the variable name of the contact<br />

resp. coil. This is used to display even long names completely by breaking them into several lines.<br />

In the Ladder editor it is possible to force linebreaks in the networks as soon as the network length<br />

would exceed the given window size and some of the elements would not be visible. For this activate<br />

the option Networks with Linebreaks.<br />

'Insert' 'Network (after)' or 'Insert' 'Network (before)'<br />

Shortcut: + (Network after)<br />

In order to insert a new network in the FBD or the LD editor, select the 'Insert' 'Network (after)' or<br />

the 'Insert' 'Network (before)' command, depending on whether you want to insert the new network<br />

before or after the present network. The present network can be changed by clicking the network<br />

number. You will recognize it in the dotted rectangle under the number. With the and a<br />

mouse click you can select from the entire area of networks, from the present one to the one clicked.<br />

The network editors in the online mode<br />

In the FBD and the LD editors you can only set breakpoints for networks. The network number field of<br />

a network for which a breakpoint has been set, is displayed in blue. The processing then stops in front<br />

5-18 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!