User-Defined Function Block
Function Blocks (FBs) are the equivalent to Integrated Circuits ICs, representing a specialized control function.
They contain data as well as the algorithm, so they can keep track of the past (unlike Functions) FBs have a well-defined interface (prototype) and hidden internals (body), like an IC or black box. In this way they give a clear separation between different levels of programmers, or maintenance people.
In Electris IDE all tools and data are FBs these are called the System FBs in addition provides support for working with Custom (user-defined)
These FBs can be changed, removed or added by the user.
Once defined, it can be used over and over again, in the same project, or different projects. Electris
IDE provides support for editing / compiling and testing their individual.
FBs are stored in classes (text files) in Custom FBs directory from Library.
These are edited in Structured Text (ST) programming language.
The format of these files (text file) is that required by the standard IEC 61131-3. This makes them highly re-usable.
Download examples of the use of Custom FBs and
See also video tutorials Custom Functions - Custom FBs - Use