→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:
-
→data types (elementary data types and user-defined data types)
-
system functions (such as Bitstring functions)
-
previously declared functions
Neuron Power Engineer supports declaration/usage of functions in these languages (according to IEC-standard):
language |
details under |
---|---|
"Declaration of a function in ST" and "Call of function in ST" |
|
"Creating POU in FBD" and "Calls of blocks: functions or function blocks" |
|
"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)".