Calling a Method Permalink

To implement a method call, the actual parameters (arguments) are passed to the interface variables. As an alternative, the parameter names can be omitted.

Depending on the declared access specifier, a method can be called only within its own namespace (‎INTERNAL‎), only within its own POU and its derivatives (‎PROTECTED‎), or only within its own POU (‎PRIVATE‎). For ‎PUBLIC‎, the method can be called from anywhere.

Within the implementation, a method can recursively call itself, either directly by means of the ‎THIS‎ pointer, or by means of a local variable for the assigned function block.