5 - 82
5 OPERATION CONTROL PROGRAMS
[Program examples]
(1) Program which changes the positioning speed of axis 2
CHGVS(K2,K10)
(2) Return program which changes the positioning speed of axis 1 to a negative value
CHGVS(K1,K 1000)
The following operation will be performed when a return request is made in
constant-speed control.
Start request
Speed change request
CHGVS
New speed
Vector speed
Command in-position
(OFF)
Speed change "0"
accepting flag
-1000 1000
Return operation to point
Waiting at P1
Starting point
P1
P2 P3
Axis2
Axis1
CPSTART2
Axis 1
Axis 2
Speed 1000
ABS-2
Axis1, 10000
Axis2, 0
ABS-2
Axis1, 10000
Axis2, 10000
ABS-2
Axis1, 20000
Axis2, 10000
CPEND
P1
P2
P3
Negative speed change
[Servo program ] [Locus]
[St.345] Command
generation axis start
accept flag (M9810+20n)
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.