
MCO 305 Design Guide
__ Software Reference __
176
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
_GETVEL
Summary
Changes sample time for AVEL and MAVEL
Syntax
var = _GETVEL t
The values are displayed in UU/s for AVEL or qc/s for MAVEL.
Parameter
t = sample time in ms
Description
With the _GETVEL command it is possible to change the sampling time for AVEL
and MAVEL. AVEL and MAVEL usually work with a sampling time of 20 ms. With this
sampling time the resolution is better. However, a new measurement is only
sampled every 20 ms.
The command _GETVEL lasts exactly as long as the assigned value, e.g.
_GETVEL 200 ca. 200 ms.
Command Group
I/0
Cross Index
AVEL,
MAVEL
Syntax Example
var = _GETVEL 200
Thus, the measurement resolution is considerably better; however changes are only
seen after a delay of 200 ms.
#INCLUDE
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)
Description
The #INCLUDE instruction tells the Compiler to include the contents of the given file
in the corresponding program position during the translation of the program. The
INCLUDE instruction is therefore not a genuine command that causes a reaction
within the MCO 305, 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 commands that may be used in the momentary
program 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.
NB!:
The file to be included must be in the current 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
Содержание MCO 305
Страница 4: ......