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.

What is What in CoDeSys<br />

Example of a network in the Function Block Diagram<br />

For further information on the FBD editor see Chapter 5.4.1.<br />

2.2.5 The Continuous Function Chart Editor (CFC)...<br />

The continuous function chart editor does not operate like the function block diagram FBD with<br />

networks, but rather with freely placeable elements. This allows feedback, for example.<br />

For further information on the CFC editor see Chapter 5.4.4.<br />

Example of a network in the continuous function chart editor<br />

2.2.6 Ladder Diagram (LD)...<br />

The Ladder Diagram is also a graphics oriented programming language which approaches the<br />

structure of an electric circuit.<br />

On the one hand, the Ladder Diagram is suitable for constructing logical switches, on the other hand<br />

one can also create networks as in FBD. Therefore the LD is very useful for controlling the call of<br />

other POUs.<br />

The Ladder Diagram consists of a series of networks. A network is limited on the left and right sides<br />

by a left and right vertical current line. In the middle is a circuit diagram made up of contacts, coils,<br />

and connecting lines.<br />

Each network consists on the left side of a series of contacts which pass on from left to right the<br />

condition "ON" or "OFF" which correspond to the Boolean values TRUE and FALSE. To each contact<br />

belongs a Boolean variable. If this variable is TRUE, then the condition is passed from left to right<br />

along the connecting line. Otherwise the right connection receives the value OFF.<br />

Example of a network in a Ladder Diagram made up of contacts and coils<br />

For further information on the LD editor see Chapter 5.4.2.<br />

CoDeSys V2.3 2-21

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

Saved successfully!

Ooh no, something went wrong!