DFB function blocks
218
35015365.01 07/2008
Presenting DFB function blocks
Role Pro PL7 software offers the user the possibility of creating his own function blocks
corresponding to the specific needs of his applications.
These user function blocks are designed for structuring an application. They will be
used when a programming sequence is repeated several times within an
application, or to freeze standard programming (e.g.: command algorithm for a
motor including taking local safeguards into account).
They can be transmitted to all the programmers and used in the same application or
in any other application (export/import function).
Examples of use Using a DFV function block in an application allows you to:
z simplify the program design and entries,
z increase the readability of the program,
z enable debugging (all the variables changed by the DFB type are identified on its
interface),
z reduce the amount of code generated (the code corresponding to the DFB is only
changed once, however many calls there are on the DFB in the program).
Comparison with
the sub-program.
In relation to the sub-program they enable:
z the parameters of the process to be set more easily,
z the internal variables belonging to the DFB and therefore independent of the
application to be used,
z testing independent of the application.
They offer a graphic display of the block in ladder language, making programming
and debugging easier.
Also, DFB function blocks use residual data.
Areas of use The table below describes the DFB areas of application.
Function Area
PL7s the DFBs can be used with. Premium
DFB creation software PL7 Pro
Software the DFBs can be used with. Pro PL7 or Junior PL7
Programming language used to create DFB code. structured text language and ladder
Programming languages the DFBs can be used
with.
ladder, structured text and instruction list