Download Print this page

Danfoss MCO 305 Design Manual page 175

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
WAITT
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
WHILE . . DO . . ENDWHILE
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
__ Software Reference __
Time delay
WAITT t
t = delay time in milliseconds (maximum MLONG)
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.
CON
DELAY, WAITI, WAITAX
WAITT 5000
/* wait 5 seconds */
WAIT T 5000
/* alternative form */
WAIT_01.M
Conditional loop with start criteria. (While condition is fulfilled, repeat ...)
WHILE condition DO
ENDWHILE
condition = abort criteria
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.
CON
LOOP, REPEAT .. UNTIL
WHILE (A != 1 AND B == 0) DO
command line 1
command line n
ENDWHILE
WHILE_01.M, INKEY_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
175

Advertisement

loading