Functions and Functionblocks

Top  Previous  Next

Functions and function blocks are two very important ingredients in a typical VPL program.

 

Functions and function blocks makes it possible to structure a program in a way that makes it much more reader-friendly and comprehensible. They also enable one very important thing - namely reusability. By using functions and function blocks, it is possible to create general functions that can be reused in many different programs. It is always a good idea to try to make general and well-documented functions as this will greatly improve the usability.

 

On the RTCU platform, whenever one accesses the cellular module, uses a timer, or prints on the display, the tool that makes this possible to do in a simple way is either a function or a function block.

 

For details on functions and function blocks, please have a look at the following:

 

FUNCTION

END_FUNCTION

ACCESS

MANDATORY

FUNCTION_BLOCK

END_FUNCTION_BLOCK

INTERFACE

IMPLEMENTATION

ASYNC

ALIGN

MUTABLE

CALLBACK