INCLUDE

Top  Previous  Next

The INCLUDE statement is used to include another file within the current file. A good example is the rtcu.inc file which is included in all RTCU applications. The rtcu.inc file contains the declarations of all the standard functions and function blocks in the RTCU.

 

INCLUDE files are often used for common functionality that can be used in several projects. INCLUDE files can be managed in the project tree,but must still be manually included in the program by using the INCLUDE statement.

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
END;
 
END_PROGRAM;