6. Function blocks
6.3 UF - User function block
6.3.6 Calling a user function block in the main program
User function blocks can be called in the main program the same way manufacturer
function blocks are called.
User function block in and FBD main program
In order to call a user function block in a main program that uses the FBD pro-
gramming language, drag the function block like a normal function block to the work
pane in the Programming view.
Fig. 277: UF Blinker1 user function block used in the main program
The function block will be shown with its name, version, and configured input-
s/outputs. The function block type will be "UF", followed by the instance number (01 to
128).
The function block will now appear in the leftmost pane with a yellow icon, and the
tab in the work pane will also change color to yellow, which means that the function
block is being used in the project.
Inputs/outputs wiring
The digital and analog inputs and outputs can be connected the same way as for any
other function block. The example shows the user function block's Q1 output being
connected to a counter relay's C input.
easyE402/24 MN050009ENEaton.com
599