Method

« Back to Glossary Index

Methods contain program code that only runs when the method is called. It is similar to a function in PROCESS-PASCAL, with the possibility of having parameters and a result.
Program code in a method has direct access to parameters, local variables, component variables and constants. However, methods differ from functions, as they can be called via P-NET.

A method can be checked as an internal method, external method or both.
Methods marked External (Access) can be called from another component in the same device or via P-NET. External methods are not allowed to call methods in other components.
Methods marked Internal (Access) cannot be called from another component but are allowed to call methods in other components.

 

Synonyms:
COPP method
« Back to Glossary Index