Mitsubishi Electronics Q172CPU(N) Home Security System User Manual


 
7 - 70
7 OPERATION CONTROL PROGRAMS
[Program examples]
(1) Program which changes the positioning speed of axis 2
CHGV(K2,K10)
(2) Return program which changes the positioning speed of axis 1 to a negative value
CHGV(K1,K 1000)
The following operation will be performed when a return request is made in
constant-speed control.
If a speed change to a negative speed is made during execution of positioning to
P2 as shown above, the axis returns to P1 along the program specified locus and
waits at P1.
P1
P2
P3
CPSTART2
Axis 1
Axis 2
Speed 1000
ABS-2
Axis 1, 10000
Axis 2, 0
ABS-2
Axis 1, 10000
Axis 2, 10000
ABS-2
Axis 1, 20000
Axis 2, 10000
CPEND
Stat request SVST
Start accept M2001+n
Speed change request
CHGV
New speed
Combined speed
-1000
1000
Waiting at P1
Return operation to point
Command in-position
(OFF)
Speed change "0"
accepting flag
Negative speed change
P1
P2
P3
Axis 1
Axis 2
Starting point
[ Servo program ]
Locus