55
A b so lu te P o s itio n
0
2 0
6 0
V M (8 )
V M (4 )
V I (2 )
2
1
Figure 10.3: MOVA Instruction Modes
have to adjust the motor current settings for whatever motor you have con-
nected. Note that the POS counter will have to be reset to 0 each time the
program is run.
POS=0
'set position counter to 0
MUNIT=80000
'set motor units to 1 munit=80000msteps
MAC=50
'set acceleration current to 50%
MRC=50
'set run current to 50%
PGM 200
'start program at address 200
VM=4
'maximum velocity for index = 4 munits
MOVA 20,1
'index to abs. position 20, do not decel
HOLD 0
'supend program until pos. chg. completes
VM=8
'maximum velocity for index = 8 munits
MOVA 60
'index to abs. position 60, decel to stop.
HOLD 2
END
PGM
M O V R
[ M o v e t o R e l a t i v e P o s i t i o n ]
This instruction will index the axis a specified number of munits relative to the
current position. The two modes perform the same way as the MOVA instruc-
tion. The program above may be adapted by replacing the MOVA instructions
with MOVR. The difference in operation will be that the POS counter will not
need to be reset to 0 following program execution as MOVR will not index the
axis to an absolute position.
S L E W
[ S l e w M o t o r a t C o n s t a n t V e l o c i t y ]
This instruction will slew the motor at the velocity given in munits per second.
It has two modes:
1] Mode 0: Use acceleration ramp.
2] Mode 1: Do not use acceleration ramp.
If the mode is not specified, then Mode 0 is assumed.
Example:
SLEW 500000
‘slew the motor at 500,000 munits/sec, use accel.
SLEW 200000,1
‘slew the motor at 200,000 munits/sec, no accel.
Use of Mode 1 may cause the axis to stall depending on the motor, load and
maximum velocity.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from