EasyManua.ls Logo

Mitsubishi MR-JE-40A - Page 169

Mitsubishi MR-JE-40A
396 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5. HOW TO USE THE PROGRAM
5 - 24
(g) Step repeat instruction (FOR...NEXT)
POINT
You cannot insert "FOR...NEXT" commands between the "FOR" and "NEXT"
commands.
The steps between the "FOR (Setting value)" and the "NEXT" commands are repeated for the set
number of times. Setting "0" repeats the operation endlessly.
For how to stop the program in this status, refer to section 5.2.4 (4).
Command Description
SPN (1000) Servo motor speed 1000 [r/min]
STC (20) Acceleration/deceleration time constant 20 [ms]
MOV (1000) Absolute value travel command 1000 [×10
STM
μm]
TIM (100) Dwell 100 [ms]
FOR (3) Start of step repeat instruction 3 [time] a)
MOVI (100) Incremental value travel command 100 [×10
STM
μm] b)
TIM (100) Dwell 100 [ms]
NEXT End of step repeat instruction c)
FOR (2) Start of step repeat instruction 2 [time] d)
MOVI (200) Incremental value travel command 200 [×10
STM
μm] e)
TIM (100) Dwell 100 [ms]
NEXT End of step repeat instruction f)
STOP Program stop
b) Incremental value
travel command
(100 × 10
STM
μ
m)
Servo motor
speed
d) Incremental value
travel command
(200 × 10
STM
μ
m)
a) c)
e) f)
1000 1100 1200 1300 1500 1700Reverse rotation
0 r/min
Forward rotation

Table of Contents

Related product manuals