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 />

Sequence after the ordering according to data flow<br />

When this command is selected the first thing to happen is that the elements are ordered<br />

topographically. A new sequential processing list is then created. Based on the known values of the<br />

inputs, the computer calculates which of the as yet not numbered elements can be processed next. In<br />

the above "network" the block AND, for example, could be processed immediately since the values at<br />

its inputs (1 and 2) are known. Block SUB can only then be processed since the result from ADD must<br />

be known first, etc.<br />

Feedback paths are inserted last.<br />

The advantage of the data flow sequencing is that an output box which is connected to the output of a<br />

block comes immediately after it in the data flow sequencing system which by topological ordering<br />

would not always be the case. The topological ordering can deliver another result in some cases than<br />

ordering by data flow, a point which one can recognise from the above example.<br />

'Extras' 'Create macro''<br />

Symbol:<br />

With this command, several POUs that are selected at the same time can be assembled into a block,<br />

which can be named as a macro. Macros only can be reproduced by Copy/Paste, whereby each copy<br />

becomes a separate macro whose name can be chosen independently. Macros are thus not<br />

references. All connections that are cut by the creation of a macro generate in- or out-pins on the<br />

macro. Connections to inputs generate an in-pin. The default name appears next to the pin in the form<br />

In. For connections to outputs, Out appears. Affected connections which had connection<br />

markers prior to the creation of the macro, retain the connection marker on the PIN of the macro.<br />

At first, a macro has the default name "MACRO". This can be changed in the Name field of the macro<br />

use. If the macro is edited, the name of the macro will be displayed in the title bar of the editor window<br />

appended to the POU name.<br />

5-44 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!