
6. Function blocks
6.3 UF - User function block
6.3 UF - User function block
Only possible with easySoft 7.
6.3.1 General
easyE4 base devices provide 127 user function blocks, UF01 through
UF127.
You can configure these function blocks yourself and then use them
in the main program the same way as manufacturer function blocks.
User function blocks are used whenever a recurring functionality needs to be pro-
grammed with various parameters. For example, when similar machines need to be
controlled, the actual control program for them can be written in a user function block
and then called multiple times – separately for each machine. User function blocks also
feature inputs and outputs that can be used to pass custom parameters for each call.
The programming language used in each user function block is independent from the
programming language used for the corresponding main program. In other words, you
can use user function blocks written in ST in an FBD or LD main program, for instance.
User function blocks have their own data range. In fact, there are 64 bytes, which can
be used as bits, bytes, words, or double words, available for each instance (call) of a
user function block. This means, for example, that marker M01 in the main program is
not the same marker M01 in a user function block.
Parts of the markers can be declared as being retentive. In this case, it is important to
keep in mind that the total number of retentive markers cannot exceed 400 bytes, and
that this total includes the retentive markers from the main program and the retentive
markers from all user function block instances.
Just like a main program, a user function block is made up of FBD/LD networks or ST
source code. This means that a user function block can be created the same way as a
main program, with the only differences consisting of the available operands (please
refer to → Section "Configuring a user function block", page 435.
The maximum number of user function blocks that can be called in a single main pro-
gram is 127.
432
easyE4
11/18 MN050009 EN www.eaton.com
Содержание easyE4 series
Страница 1: ...Manual 11 18 MN050009 EN easyE4 Manual...
Страница 4: ......
Страница 16: ...12 easyE4 11 18 MN050009 EN www eaton com...
Страница 22: ...0 1 About this manual 18 easyE4 11 18 MN050009 EN www eaton com...
Страница 40: ...1 easyE4 control relays description 1 10 Safety regulations 36 easyE4 11 18 MN050009 EN www eaton com...
Страница 169: ...easyE4 11 18 MN050009 EN www eaton com 165...
Страница 462: ...6 Function blocks 6 4 Timing and counter relay example 458 easyE4 11 18 MN050009 EN www eaton com...
Страница 490: ...7 System settings 7 16 Time and Date setting 486 easyE4 11 18 MN050009 EN www eaton com...
Страница 520: ...9 easyE4 inside 9 7 NET network 516 easyE4 11 18 MN050009 EN www eaton com...
Страница 524: ...10 Diagnostics messages of the operating system 10 2 Diagnostics buffer 520 easyE4 11 18 MN050009 EN www eaton com...
Страница 570: ...11 Connection to other devices 11 6 E mail function 566 easyE4 11 18 MN050009 EN www eaton com...
Страница 578: ...12 Faults 12 4 Functionality of the NET faulty 574 easyE4 11 18 MN050009 EN www eaton com...
Страница 582: ...13 Maintenance 13 3 Storage transport and disposal 578 easyE4 11 18 MN050009 EN www eaton com...
Страница 594: ...590 easyE4 11 18 MN050009 EN www eaton com...
Страница 614: ...610 easyE4 11 18 MN050009 EN www eaton com...