→Function

according to →IEC-standard: language 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:

Neuron Power Engineer supports declaration/usage of functions in these languages (according to IEC-standard):

language

details under

→ST

"Declaration of a function in ST" and "Call of function in ST"

→FBD

"Creating POU in FBD" and "Calls of blocks: functions or function blocks"

→LD

"Creating POU in LD" and "Functions and function blocks in LD"

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)".