6 - 118
6 POSITIONING CONTROL
(4) Servo program
Servo program No.500 for speed-switching control is shown below.
2000
ABS-2
VSTART
Speed-switching point, speed setting
<K 500>
VABS
Axis 2,
VEND
Axis 3,
Speed
100000
50000
Axis 2,
Speed
VABS
Axis 2,
Speed
2 axes linear interpolation control (absolute data method)
Start speed-position switching control
Speed to speed-switching point
Speed-switching point
Positioning speed . . . . . . . . . . 2000
Indicated axis No. Axis 2
40000
End speed switching control
8000
70000
5000
40000
8000
70000
5000
Axis used . . . Axis 2, Axis 3
End address
Axis 2 . . . 100000
Axis 3 . . . . 50000
(Note): Example of the Motion SFC program for positioning control is shown next page.
(5) Motion SFC program
Motion SFC program for which executes the speed-switching control is shown
below.
SET M2042
VSTART
ABS-2
Axis 2, 100000pulse
Axis 3, 50000pulse
Speed 2000pulse/s
VABS
Axis 2, 40000pulse
Speed 8000pulse/s
VABS
Axis 2, 70000pulse
Speed 5000pulse/s
VEND
PX000*M2435*M2455
Speed-switching control
END
Speed-switching control
!PX000
(Unit : Point [pulse]/speed[pulse/s])
Turn on all axes servo ON command.
Wait until PX000, Axis 2 servo ready and Axis 3 servo
ready turn on.
Start speed-switching control
2 axes linear interpolation control (absolute data method)
Axis used . . . . . . . . . . . Axis 2, Axis 3
End address
Axis 2 . . . 100000[pulse]
Axis 3 . . . . 50000[pulse]
Positioning speed . . . . . . . .. . 2000[pulse/s]
Speed-switching point, speed setting
Axis2
40000
70000
5000
8000Speed to speed-switching point
Speed-switching point
Indicated axis No.
End speed-switching control
Wait until PX000 turn off after speed-switching control
completion.
[K500]
[F10]
[G10]
[G20]
(Note): Example of the above Motion SFC program is started using the automatic start or sequence program.