Specifications

BASIC commands
PROGRAMMING MANUAL 156
Revision 5.0
3.2.225 REP_OPTION
/i
/i
/i
3.2.226 REPEAT..UNTIL
/i
3.2.227 RESET
/i
See also AXIS, DPOS, MPOS, REP_OPTION, UNITS.
Type Axis parameter
Syntax REP_OPTION
Description The REP_OPTION parameter controls the application of the
REP_DIST axis parameter and the repeat option of the CAMBOX
and MOVELINK Axis commands. The default value is 0. See the
table below.
Bit Description
0 The repeated distance range is controlled by bit 0 of the REP_OPTION parameter.
If REP_OPTION bit 0 is off, the range of the demanded and measured positions
will be between -REP_DIST and REP_DIST.
If REP_OPTION bit 0 is on, the range of the demanded and measured positions
will be between 0 and REP_DIST.
1 The automatic repeat option of the CAMBOX and MOVELINK commands are con-
trolled by bit 1 of the REP_OPTION parameter. The bit is set on to request the sys-
tem software to end the automatic repeat option. When the system software has set
the option off it automatically clears bit 1 of REP_OPTION.
Arguments N/A
Example No example.
See also AXIS, CAMBOX, MOVELINK, REP_DIST.
Type Program control command
Syntax REPEAT
commands
UNTIL condition
Description The REPEAT ... UNTIL structure allows the program segment between the
REPEAT and the UNTIL statement to be repeated a number of times until the
condition becomes TRUE.
Note: REPEAT ... UNTIL construct can be nested indefinitely.
Arguments commands
Any valid set of BASIC commands
condition
Any valid BASIC logical expression
Example A conveyor is to index 100mm at a speed of 1000mm/s, wait for 0.5s and then
repeat the cycle until an external counter signals to stop by turning on input 4.
cycle:
SPEED = 1000
REPEAT
MOVE(100)
WAIT IDLE
WA(500)
UNTIL IN(4) = ON
See also FOR..TO..STEP..NEXT, WHILE..WEND.
Type System command
Syntax RESET
Description The RESET command sets the value of all local variables of the current
BASIC task to 0.
Arguments N/A
Example No example.
See also CLEAR.