Object Oriented Reference
Object Oriented feature is achieved by enhancing the function block POU, there is not aspecific element of type “class”.This way a function block can have methods, which are handled like functions except that they can see the relative function block context.A function block can extends another function block (only one) in a father-child hierarchy; and can implements any number of interfaces.Interfaces are handled like new type definitions and allow the user to specify a list of method prototypes composed of name and expected input variables; also interfaces can extends other interfaces (max one) in a father-child hierarchy.If a function block implements one or more interfaces, it must correctly implements all of their methods in order to succesfully complete a project compilation.GF_ProjectVX code can handle polimorphysm on both function blocks and interfaces.