Operation – MITSUBISHI ELECTRIC MR-J2S- CL User Manual
Page 104

4 - 21
4. OPERATION
(g) Step repeat command (FOR NEXT)
POINT
"FOR ... NEXT" cannot be placed within "FOR ... NEXT".
The steps located between the "FOR (set value)" command and "NEXT" command is repeated by
the preset number of times.
Program
Description
SPN (1000)
STC (20)
MOV (1000)
TIM (10)
FOR (3)
MOVI (100)
TIM (10)
NEXT
FOR (2)
MOVI (200)
TIM (10)
NEXT
STOP
Speed (Motor speed)
1000 [r/min]
Acceleration/deceleration time constant
20 [ms]
Absolute move command
500 [ 10
STM
m]
Dwell command time
100 [ms]
Step repeat command start
3 [times]
a)
Incremental move command
100 [ 10
STM
m]
b)
Dwell command time
100 [ms]
Step repeat command end
c)
Step repeat command start
2 [times]
d)
Incremental move command
200 [ 10
STM
m]
e)
Dwell command time
100 [ms]
Step repeat command end
f)
Program end
0r/min
1100
1200
1300
1000
1500
1700
Servo motor
speed
Forward
rotation
b) Incremental move command
(100 10
STM
m)
d) Incremental move command
(200 10
STM
m)
a) c)
e) f)