6. Function blocks
6. Function blocks
Function blocks offer pre-defined solutions for frequently occurring programming
tasks. Whether a function block is available or not will depend on the programming
language you select and the firmware version used in the project.
Following is a description of each individual function block that goes over the number
of instances allowed; how the function block works; and which inputs, outputs, and
operating modes it has.
Function block value ranges
Each description gives the value ranges for the analog inputs and outputs of each
function block. Analog function block inputs and outputs are linked to operands or
constants of data type DWORD, meaning that operands can theoretically be assigned
values of -2147483648 to +2147483647, although value processing is limited to a more
reasonable value range. Assigning higher values will set the operands to the relevant
maximum or minimum value for the corresponding value range.
Manufacturer function blocks
Manufacturer function blocks are available in easySoft 8 and directly on the device
Timer modules 
 HW - Weekly timer (Hour Week) → page 244
 HY - Year time switch (Hora Year) → page 291
 OT - Operating hours counter → page 264
 RC - Real-time clock → page 269
 T - Timing relay → page 272
 WT - Weekly timer (WeekTable) → page 291
 YT - Year time switch (Year Table) → page 284
 AC - Astronomic clock → page 295
Counter Function Blocks 
 C - Counter relay → page 304
 CF - Frequency counter → page 310
 CH - High-speed counter → page 316
 CI - Incremental counter → page 322
easyE402/24 MN050009ENEaton.com
241