Download Print this page

Danfoss MCO 305 Design Manual page 176

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
_GETVEL
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
#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
176
__ Software Reference __
Changes sample time for AVEL and MAVEL
var = _GETVEL t
The values are displayed in UU/s for AVEL or qc/s for MAVEL.
t = sample time in ms
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.
I/0
AVEL, MAVEL
var = _GETVEL 200
Thus, the measurement resolution is considerably better; however changes are only
seen after a delay of 200 ms.
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark

Advertisement

loading