Danfoss MCO 305 Design Manual page 176

Programmable motion controller
Hide thumbs Also See for MCO 305:
Table of Contents

Advertisement

MCO 305 Design Guide
Command
Description
... ENDIF
end of the conditional program execution
LOOP
repeats loop
MOTOR STOP
motor-stop with a programmed delay (with
ramp)
NOWAIT
on/off switch for waiting for the command
execution
REPEAT
beginning of repeat loop
REPEAT... UNTIL
conditional loop, with an end criteria
SUBMAINPROG
commencement of the subroutine definition
area
... ENDPROG
end of the subroutine definition area
SUBPROG
begins a subroutine
... RETURN
ends a subroutine
SYSVAR
system variable (pseudo array) reads system
values
VLTALARMSTAT
returns if an alarm is active or not
VLTCONTROL
sets the VLT control word in MOTOR OFF state VLTCONTROL
VLTERRCLR
clears a VLT-alarm
WAITAX
waits until target position is reached
WAITI
waits for input
WAITNDX
waits until the next index position is reached
WAITP
waits until a certain position is reached
WAITT
time delay in milliseconds
WHILE ... DO
conditional loop with commencement criteria
ENDWHILE
end of the loop
#INCLUDE
compiler directive: embedding further data
176
__ How to Program __
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark
Syntax
Parameter
ENDIF
LOOP n label
n = number of repetitions
label = target position
MOTOR STOP
NOWAIT s
s = condition ON / OFF
REPEAT
UNTIL condition
condition = abort criteria
SUBMAINPROG
ENDPROG
SUBPROG name
name = subroutine name
RETURN
SYSVAR [n]
n = index
VLTALARMSTAT
value
control word value
VLTERRCLR
WAITAX
WAITI n s
n = input number
s = expected ON / OFF
WAITNDX t
t = timeout in ms
WAITP p
p = absolute position
WAITT t
t = delay in ms
WHILE condition DO condition = abort criteria
ENDWHILE
#INCLUDE file
file = name of the file to be
included

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents