IEC 61131-3 Basic Functions/Function Blocks

 

This help file contains descriptions of firmware functions and function blocks.

How to call help on functions/function blocks?

You can call the table of contents of the complete FU/FB help via the menu by selecting the '? > Help on FB/FU' menu item.

To open the help topic relating to a specific function or function block you can use the Edit Wizard or the dialog 'Function/Function Block'.

Definition of basic functions/function blocks according to the IEC 61131-3 standard

Functions (short: FUs) are POUs which may have several input param­eters but always exactly one output parameter. As they do not have any internal memory, a function called with the same input values always returns the same result.

Function blocks (short: FBs) are POUs which may have several input and several output parameters. FBs have an internal memory. This means that the value a function block returns depends on the value of its internal memory. Therefore, function blocks have to be instantiated: An instance name has to be declared for each FB to be used, which uniquely identifies the FB instance, and with which the FB can be used (called) in the code. The declaration of the instance name is done auto­matically using the 'Variable' dialog when inserting an FB from the Edit Wizard into the code.

In addition to the IEC 61131-3 basic functions/function blocks, further libraries can be included in EcoStruxure Machine Expert - Safety (see topic "How to insert/delete  libraries") providing additional blocks.