![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243192.webp)
177
Command, function and parameter description
Section 6-3
‘Reset registration prior to each move
DEFPOS(0)
REGIST(2+768)
’Allow mark at first 10 mm or last 10 mm of sheet
CAM(0,50,(offset*0.5)*cf,1000)
WAIT UNTIL TICKS > 500
GOTO loop
The variable
cf
is a constant which would be calculated depending on the
machine draw length per encoder edge.
6-3-154 REMAIN
Type:
Axis Parameter
Description:
The REMAIN parameter contains the distance remaining to the end of the
current move. It can be checked to see how much of the move has been com-
pleted. REMAIN is defined in user units.
Note This parameter is read-only.
See also:
AXIS, UNITS
Example:
To change the speed to a slower value 5mm from the end of a move.
start:
SPEED = 10
MOVE(45)
WAIT UNTIL REMAIN < 5
SPEED = 1
WAIT IDLE
6-3-155 RENAME
Type:
Program Command
Syntax:
RENAME
“
old_program_name
” “
new_program_name
”
Description:
The RENAME command changes the name of a program in the MC Unit
directory. The program names can also be specified without quotes.
Precautions:
This command is implemented for an offline (VT100) terminal. Within Motion
Perfect users can select the command from the Program menu.
Arguments:
old_program_name
The current name of the program.
new_program_name
The new name of the program.
See also:
COPY, DEL, NEW
Example:
RENAME "car" "voiture"
6-3-156 REP_DIST
Type:
Axis Parameter
Description:
The REP_DIST parameter contains the repeat distance, which is the allow-
able range of movement for an axis before the demand position (DPOS) and
measured position (MPOS) are corrected. REP_DIST is defined in user units.
The exact range is controlled by REP_OPTION. The REP_DIST can have
any non-zero positive value.
When the measured position has reached its limit, the MC unit will adjust the
absolute positions without affecting the move in progress or the servo algo-