
MCO 305 Design Guide
__ Software Reference __
146
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
REPEAT .. UNTIL ..
Summary
Conditional loop with end criteria (Repeat ... until condition fulfilled)
Syntax
REPEAT
UNTIL Condition
Parameter
condition = Abort criteria
Description
The REPEAT..UNTIL construction enables any number of repetitions of the enclosed
program section, dependent on abort criteria. The abort criteria consist of one or
more comparative procedures and are always checked at the end of a loop. As long
as the abort criteria are not fulfilled, the loop will be processed repeatedly.
NB!:
Because the abort criteria are checked at the end of the loop, the commands within
the loop will be carried out at least once.
To avoid the possibility of an endless loop, the processed commands within the loop
must have a direct or indirect influence on the result of the abort monitoring.
Command Group
CON
Cross Index
LOOP, WHILE
. .
DO
. .
ENDWHILE
Syntax Example
REPEAT
/* start loop */
command line 1
command line n
UNTIL (A != 1)
/* Abort condition */
Program Sample
REPEA_01.M, DIM_01.M, ONINT_01.M, OUT_01.M, INKEY_01.M
RST ORIGIN
Summary
Erase temporary zero point
Syntax
RST ORIGIN
Description
A previously with SET ORIGIN set temporary zero point can be erased by use of the
RST ORIGIN command. This means that all the following absolute positioning
commands (POSA) again refer to the real zero point.
Command Group
INI
Cross Index
SET ORIGIN, DEF ORIGIN, POSA
Syntax Example
RST ORIGIN
/* reset temporary zero point */
Program Sample
TORIG_01.M, OUT_01.M, VEL_01.M
SAVE part
Summary
Save arrays or parameters in the EEPROM
Syntax
SAVE part
part = ARRAYS, AXPARS, GLBPARS, or USRPARS
Description
If array elements or parameters are altered while the program is running the
altered values can be saved individually in the EEPROM with these commands:
SAVE GLBPARS
saves the range of global parameters (group 30-5* and group 33-
8*), and application parameters (group 19-**) in the EEPROM.
SAVE AXPARS
saves all other axes parameters.
SAVE USRPARS
saves only application parameters (group 19-**).
NB!:
The EEPROM can only handle execution of this command up to 10000 times.
Command Group
INI
Cross Index
DELETE ARRAYS, SAVEPROM
Summary of Contents for MCO 305
Page 4: ......