Implement interfaces...

Overview

You can use the Implement interfaces... command to update a function block concerning the implemented interfaces. If the interface definition has been modified, for example by adding another method, this modification can also be performed accordingly in the function block. To do so, right-click the function block object in the navigators and execute the command Implement interfaces.... For further information, refer to the chapter Implementing Interfaces.

When you use inheritance for function blocks, consider that if methods or attributes were created by inheritance of an interface, either implement them, or delete them if the implementation of the base function block is to be used. Pragma attributes are automatically inserted. They are detected during compilation and messages are generated to remind you that the inherited methods or properties have to be verified. Delete the pragma attributes after you have completely implemented the new function block.