
MCO 305 Design Guide
__ Software Reference __
90
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
Control Commands
Commands for controlling the program flow and for structuring the programs. (Group CON)
Command
Description
Syntax
Parameter
CONTINUE
continues positioning from point of interrup-
tion, e.g. following a motor-stop
CONTINUE –
DELAY
time delay
DELAY t
t = delay in ms
DIM
declaration of a global array
DIM array [n]
array = name
n = number of elements
EXIT
desired, premature program termination
EXIT
–
GOSUB
calling up a subroutine
GOSUB name
name = subroutine name
GOTO
jumping within a program
GOTO label
label = target position
IF THEN
conditional program execution
IF condition THEN
command
condition = branching criteria
… ELSE IF THEN … with conditional alternative branching
ELSEIF condition
THEN command
command = one or more
program commands
… ELSE
… with alternative branching
ELSE command
… ENDIF
end of the conditional program execution
ENDIF
LOOP
repeats loop
LOOP n label
n = number of repetitions
label = target position
MOTOR STOP
motor-stop with a programmed delay (with
ramp)
MOTOR STOP
–
NOWAIT
on/off switch for waiting for the command
execution
NOWAIT s
s = condition ON / OFF
REPEAT
beginning of repeat loop
REPEAT
REPEAT… UNTIL conditional loop, with an end criteria
UNTIL condition
condition = abort criteria
SUBMAINPROG
commencement of the subroutine definition
area
SUBMAINPROG
–
… ENDPROG
end of the subroutine definition area
ENDPROG
–
SUBPROG
begins a subroutine
SUBPROG name
name = subroutine name
… RETURN
ends a subroutine
RETURN
–
SYSVAR
system variable (pseudo array) reads system
values
SYSVAR [n]
n = index
VLTALARMSTAT
returns if an alarm is active or not
VLTALARMSTAT
–
VLTCONTROL
sets the VLT control word in MOTOR OFF state VLTCONTROL
control word value
value
VLTERRCLR
clears a VLT-alarm
VLTERRCLR
–
WAITAX
waits until target position is reached
WAITAX
–
WAITI
waits for input
WAITI n s
n = input number
s = expected ON / OFF
WAITNDX
waits until the next index position is reached WAITNDX t
t = timeout in ms
WAITP
waits until a certain position is reached
WAITP p
p = absolute position
WAITT
time delay in milliseconds
WAITT t
t = delay in ms
WHILE … DO
conditional loop with commencement criteria WHILE condition DO condition = abort criteria
ENDWHILE
end of the loop
ENDWHILE
–
Содержание MCO 305
Страница 4: ......