Download Print this page

Danfoss MCO 305 Design Manual page 146

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
REPEAT .. UNTIL ..
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
RST ORIGIN
Summary
Syntax
Description
Command Group
Cross Index
Syntax Example
Program Sample
SAVE part
Summary
Syntax
Description
Command Group
Cross Index
146
__ Software Reference __
Conditional loop with end criteria (Repeat ... until condition fulfilled)
REPEAT
UNTIL Condition
condition = Abort criteria
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.
CON
LOOP, WHILE . . DO . . ENDWHILE
REPEAT
/* start loop */
command line 1
command line n
UNTIL (A != 1)
/* Abort condition */
REPEA_01.M, DIM_01.M, ONINT_01.M, OUT_01.M, INKEY_01.M
Erase temporary zero point
RST ORIGIN
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.
INI
SET ORIGIN, DEF ORIGIN, POSA
RST ORIGIN
/* reset temporary zero point */
TORIG_01.M, OUT_01.M, VEL_01.M
Save arrays or parameters in the EEPROM
SAVE part
part = ARRAYS, AXPARS, GLBPARS, or USRPARS
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.
INI
DELETE ARRAYS, SAVEPROM
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark

Advertisement

loading