12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

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

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

plc fb - 21.1<br />

21. FUNCTION BLOCK PROGRAMMING<br />

Topics:<br />

• The basic construction of FBDs<br />

• The relationship between ST <strong>and</strong> FBDs<br />

• Constructing function blocks with structured text<br />

• Design case<br />

Objectives:<br />

• To be able to write simple FBD programs<br />

21.1 INTRODUCTION<br />

Function Block Diagrams (FBDs) are another part of the IEC 61131-3 st<strong>and</strong>ard.<br />

The primary concept behind a FBD is data flow. In these types of programs the values<br />

flow from the inputs to the outputs, through function blocks. A sample FBD is shown in<br />

Figure 21.1. In this program the inputs N7:0 <strong>and</strong> N7:1 are used to calculate a value<br />

sin(N7:0) * ln(N7:1). The result of this calculation is compared to N7:2. If the calculated<br />

value is less than N7:2 then the output O:000/01 is turned on, otherwise it is turned off.<br />

Many readers will note the similarity of the program to block diagrams for control systems.<br />

N7:0<br />

N7:1<br />

N7:2<br />

SIN<br />

LN<br />

A<br />

* A < B O:000/01<br />

B<br />

Figure 21.1<br />

A Simple Comparison Program<br />

www.PA<strong>Control</strong>.com

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

Saved successfully!

Ooh no, something went wrong!