You are on page 1of 10

Module 9 FBD Language

October 2008

Overview
Function Block Diagram (FBD) is a graphical language that is data flow oriented Complies with IEC 61131-3 standard Particularly suitable for continuous or discrete control applications FBD program uses functions and instances of function blocks linked each other by links or intermediate variables. Comments can be add to describe the logic of program FBD programming is not cell oriented but a grid help you to position the blocks

Schneider Electric

- Training M RUIZ June 2008

FBD Editor
Based on a customizable grid (by default 36 columns x 24 rows)

Free form editor

Execution number Execution sequence is defined by the position of FFBs and links but can be changed

Schneider Electric

- Training M RUIZ June 2008

FBD Toolbar

Types library browser

Link

Toggle pin negation

Jump label

Comment

Data selection

FFB input assistant

Call subroutine block

Jump

Return

Schneider Electric

- Training M RUIZ June 2008

Select a FFB
1. Activate data selection 2. Access to FFB selection

4. Access to FFB types or instances

3. Choose the library

5. Choose the FFB

Schneider Electric

- Training M RUIZ June 2008

Use FFB Input Assistant


Select FFB type Select or change FFB instance name

For each connected pin enter or select a variable or value Access FFB online help

Schneider Electric

- Training M RUIZ June 2008

Insert a FFB by Drag and Drop


Access the Types Library Browser

Select the funtion block (library / family / block)

Drag and drop the function block to the FBD editor

Schneider Electric

- Training M RUIZ June 2008

Programming Rules
Variables
Directly entered Define through the data selector or by drag and drop from the data editor

FFBs
Define through the data selector or by drag and drop from the <Libset> browser Define through the FFB input assistant

Loops
Links are not permitted to create a loop Use intermediate (feedback) variable to resolve a loop

Link of string variables


Pins of type string cannot be link together (FFB output to another FFB input) Use intermediate variable to resolve a string link

Schneider Electric

- Training M RUIZ June 2008

Extendable Blocks

Some function blocks can be extended up to 32 pins by making a grab of its bottom part

Schneider Electric

- Training M RUIZ June 2008

Execution Sequence
Execution sequence is determined by the position of the FFBs (executed from left to right and from top to bottom) If FFBs are linked graphically the execution sequence is determined by the signal flow The execution sequence is indicated for each FFB by the execution number (if the top right corner of the frame) To change the execution order suggested by the system
Change the FFBs position Modify the links between FFBs Modify the execution number of some FFBs
Schneider Electric - Training M RUIZ June 2008 10

You might also like