![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243193.webp)
178
Command, function and parameter description
Section 6-3
rithm. Not that the demand position can be outside the range because the
measured position is used to trigger the adjustment.
For every occurrence (DEFPOS, OFFPOS, MOVEABS, MOVEMODIFY)
which defines a position outside the range, the end position will be redefined
within the range.
The default value for axis 0, 1 and 2 are respectively 2147483648, 5000000
and 5000000.
See also:
AXIS, DPOS, MPOS, REP_OPTION, UNITS
6-3-157 REP_OPTION
Type:
Axis Parameter
Description:
The REP_OPTION parameter controls the application of the REP_DIST axis
parameter and the repeat option of the CAMBOX and MOVELINK motion
control commands. The default value is 0.
See also:
AXIS, CAMBOX, MOVELINK, REP_DIST
6-3-158 REPEAT UNTIL
Type:
Structural 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.
Precautions:
REPEAT ... UNTIL construct can be nested indefinitely.
Arguments:
commands
Any valid set of BASIC commands
condition
Any valid BASIC logical expression
See also:
FOR, WHILE
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)
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 com-
mands are controlled by bit 1 of the REP_OPTION parameter. The
bit is set ON to request the system software to end the automatic
repeat option. When the system software has set the option OFF it
automatically clears bit 1 of REP_OPTION.