
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
175
WAITT
Summary
Time delay
Syntax
WAITT
t
Parameter
t = delay time in milliseconds (maximum MLONG)
Description
The WAITT command is suitable for achieval of a defined program time delay. The
inputted parameter shows the delay time in milliseconds.
NB!:
If an interrupt occurs during the delay time, then the entire delay procedure will be
re-begun following the processing of the interrupt.
The DELAY command is preferable to the WAITT command, because of its constant
time behavior.
Command Group
CON
Cross Index
DELAY, WAITI, WAITAX
Syntax Example
WAITT 5000
/* wait 5 seconds */
WAIT T 5000
/* alternative form */
Program Sample
WAIT_01.M
WHILE . . DO . . ENDWHILE
Summary
Conditional loop with start criteria. (While condition is fulfilled, repeat …)
Syntax
WHILE
condition
DO
ENDWHILE
Parameter
condition = abort criteria
Description
By using the WHILE . . ENDWHILE construction you can repeat the enclosed
program area one or more times, dependent on any criteria. The loop criteria is
made up of one or more comparison operations, and is always monitored at the
start of a loop. When a negative result already appears at the first monitoring, this
can cause an omission of the commands within the loop, and the program will
continue after the ENDWHILE instruction.
NB!:
Depending on the loop criteria, it can happen that the contents of the loop will
never be processed.
To avoid an endless loop, the processed commands within the loop must have a
direct or indirect influence on the result of the abort check.
Command Group
CON
Cross Index
LOOP, REPEAT .. UNTIL
Syntax Example
WHILE (A != 1 AND B == 0) DO
command line 1
command line n
ENDWHILE
Program Sample
WHILE_01.M,
INKEY_01.M
Summary of Contents for MCO 305
Page 4: ......