Vai al contenuto

Invoking Methods

Methods work like functions, except that they have access to the class context (which means, for example, the Input variables of the function block).Methods can be invoked in a POU (for example in a program), like extensions to the Function Block instance: Invoking Methods-image_0Methods can be called from other methods of the same class, to do so use the this. specifier: Invoking Methods-image_0Methods can be called also from inside the relative Function Block body, but the Function Block body cannot be called from inside a method.