Danfoss VLT 5000 Series Manual page 124

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

I I I I I INCLUDE
The #INCLUDE instruction tells the Compiler to
include the contents of the given file in the corres-
ponding program position during the translation of
the program.
The INCLUDE instruction is therefore not a genuine
command that causes a reaction within the Sync-
Pos option, but an instruction for the translation
program – a Compiler Directive.
The #INCLUDE instruction can be placed in any
program position, as many times as desired within
a program. However, attention must be given to the
fact that the data to be included contains com-
mands that may be used in the momentary pro-
gram position, and that the command syntax is
correct.
The #INCLUDE instruction is especially suitable for
storing frequently used subroutines in separate
files and to include them in the application within
the SUBMAINPROG ..ENDPROG area.
Summary
Inclusion of file contents in the indicated program
position
Syntax
#INCLUDE file
Parameter
file = complete name of the file to be included
(path commands inadmissible)
NB!
The file to be included must be in the cur-
rent directory. The given data names must
end with ".M". The commands within the file to be
included must have correct syntax.
Command group
CON
Syntax-Example
#INCLUDE INC_UP01.M
/* Include contents from file INC_UP01.M */
Program sample
INCL_01.M + INCSTA01.M + INCPOS01.M +
INCIN01.M
124
VLT
®
5000 SyncPos option
MG.10.J4.02 – VLT is a registered Danfoss trade mark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents