Danfoss VLT 5000 Series Manual page 105

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

I I I I I REPEAT .. UNTIL ..
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 proce-
dures 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.
Summary
Conditional loop with end criteria
(Repeat ... until condition fulfilled)
Syntax
REPEAT
UNTIL condition
Parameter
condition = Abort criteria
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
command line 1
command line n
UNTIL (A != 1)
Program sample
REPEA_01.M
DIM_01.M, ONINT_01.M, OUT_01.M, INKEY_01.M
MG.10.J4.02 – VLT is a registered Danfoss trade mark
/* start loop */
/* Abort condition */
®
VLT
5000 SyncPos option
I I I I I 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 abso-
lute positioning commands (POSA) again refer to
the real zero point.
Summary
Erase temporary zero point
Syntax
RST ORIGIN
Command group
INI
Cross Index
SET ORIGIN, DEF ORIGIN, POSA
Syntax-Example
/* reset temporary zero point */
RST ORIGIN
Program sample
TORIG_01.M, OUT_01.M, VEL_01.M
I I I I I SAVE part
If you alter array elements, axis parameters while
the program is running you can save the altered
values in the EEPROM with SAVE ARRAYS. To
save the range of global parameters and user
parameters (130–229) individually in the EEPROM,
use the command SAVE GLBPARS.
Summary
Save arrays, current axis parameters or global
parameters in the EEPROM
Syntax
SAVE part
part =
ARRAYS
AXPARS
GLBPARS
Command group
INI
Cross Index
DELETE ARRAYS, SAVEPROM
105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents