How to Create User Function blocks using functional block diagram

Published on Nov20, 2024 | Category: fbd
Share this article:

user function block designed to perform a specific task and can be called multiple times throughout a program, reducing redundancy and improving maintainability. Each plc programming have standard block like timer, counter, arithmetic, comparison block but user function block are made by programmer for use multiple time like standard block. for example if we have many motors than create a user blocks to start, stop and read motor current, trip etc. user function blocks designed with multiple inputs and outputs parameter like other standard blocks. task like start stop motor, open and close gate, belt conveyor start stop etc. in this article we create very simple user function using functional block diagram and used same user function blocks in ladder and structured text programming.

add POU for user functional blocks

add POU object on your project select IEC standard and than select POU in pou dialog enter pou name and than access speicifier select internal or public if you want to use user function block for internal program than select internal or select public. follow these steps to create function blocks in abb automation builder

../ABB/img/abb user function block in fbd/add POU for user functional blocks.webp

open pou and declare inputs and outputs of function blocks

declare related inputs and outputs of function blocks in this step the variable which declared in VAR_input and VAR_output as visible to other user and variable which declared in VAR not visible and only you can use these variable for internal use of functional blocks.

../ABB/img/abb user function block in fbd/open pou and declare inputs and outputs of function blocks.webp

create a simple program for your user functional blocks

create a simple program with declared inputs and outputs. in this article we create a simple continuous pulse generator program, pulse generation is depend on user pulse duration value. in this program a on delay timer blocks, reset set blocks and comparison blocks is used. Following inputs and outputs are visible to user after functional blocks deploy.

../ABB/img/abb user function block in fbd/create a simple program for your user functional blocks.webpafter program build program so you can used to another program.

call a user function blocks in main program

you can use above functional blocks in anywhere of the programmer by adding these user function blocks to program. in first we add user functional blocks in a main program. PLC_PRG is a main program of abb automation builder. PLC_PRG is used structured text for programming. follow these steps to call user function blocks in main program

../ABB/img/abb user function block in fbd/call a user function blocks in main program.webp

declare parameter of user function blocks

when user function blocks is called in other program first declared all inputs and outputs variable. use same data type as declared in user functional blocks after adding all parameter build program and if no error than download or simulate program to check proper operation of program.

../ABB/img/abb user function block in fbd/declare parameter of user function blocks.webp

call user function blocks in POU

user function blocks are designed for multiple uses. add a pou and select your programming language here we select ladder programming language to use user function blocks which are made by functional blocks diagram. follow these steps to add user functional blocks in pou ../ABB/img/abb user function block in fbd/call a user function blocks in main program.webp

https://chefthierry.ca/wp-content/uploads/2022/03/ecole-culinaire-fiche-d-inscription.pdf
June 8, 2025, 8:18 pm

Your means of describing all in this article is actually good, every one be able to simply be aware of it, Thanks a lot https://chefthierry.ca/wp-content/uploads/2022/03/ecole-culinaire-fiche-d-inscription.pdf

https://blonnoir.com/fr/
June 6, 2025, 7:12 pm

Your means of telling everything in this article is really nice, all be
capable of simply understand it, Thanks a lot https://blonnoir.com/fr/

Cochez SantΓ©
June 6, 2025, 4:22 am

Your way of telling all in this piece of writing is actually nice, all
be capable of effortlessly be aware of it, Thanks a lot https://cochezsante.com/territoires-desservis/massotherapeutes-quebec-canada/massotherapeutes-quebec/

fenestration des sommets
June 3, 2025, 2:20 pm

Your means of telling all in this article is actually nice,
every one be capable of simply know it, Thanks a lot https://fenestrationdessommets.com/produits/portes/

Clinique Myozen
June 2, 2025, 2:44 pm

Your means of telling everything in this post is actually pleasant, all be capable
of without difficulty know it, Thanks a lot https://www.myozen.ca/en/produit/gift-card/