→Function

according to →IEC-standardlanguage element which, when executed, typically yields one data element result and possibly additional →output variables

A function is a →program organization unit (such as a →program and a →function block) that does not store its states; i.e. inputs, internals and outputs/results.
Functions can be declared using the following elements:

logi.CAD 3 supports declaration/usage of functions in these languages (according to IEC-standard):

Moreover, it is possible to create functions in →C or →C++ and to use them in ST. See "Integrating C-code and/or C++-code into the application (deprecated)".