INTERFACE |
|
|
Using the INTERFACE / IMPLEMENTATION functionality it is possible to split a FUNCTION and FUNCTION_BLOCK into two sections. One section that caters for the interface and another section that caters for the actual implementation.
Using this separation it is possible to expose the interface in a separate INC file and then the implementation can be in another INC file that may be encrypted.
Another advantage with this separation is to break dependencies in large program complexes, such that as soon as the INTERFACE has been declared, then other parts of the code can reference the function / function block.
Example of usage:
FUNCTION INTERFACE funcA:INT;
|