NOVA electronics Inc. MCX514 -
85
-
85
-
■
Example 4 Starts to output split pulses from position 5,000 in X axis and changes split length and pulse width from
position 10,000
Split pulse starts from the logical position 5,000 and changes a split length and pulse width from the logical position 10,000, and
then outputs the rest of split pulses. This is performed by the function of a synchronous action.
XPP, XPM
Position
:
5000
Position
:
10000
Pulse width
:
5
Split length
:
10
Pulse width
:
2
Split length
:
4
XSPLTP
Fig. 2.7-6 Change Split Length and Pulse Width at Specified Position during the Driving
【
Program Example
】
// Drive setting (constant speed driving at 1000 PPS)
WR6
←
1200h Write
// Initial speed 8M PPS (maximum)
WR7
←
007Ah Write
WR0
←
0104h Write
WR6
←
03E8h Write
// Drive speed 1000 PPS
WR7
←
0000h Write
WR0
←
0105h Write
WR6
←
0000h Write
// Logical position counter 0
WR7
←
0000h Write
WR0
←
0109h Write
WR6
←
2EE0h Write
// Drive pulse number 12000
WR7
←
0000h Write
WR0
←
0106h Write
// Split pulse setting
// Split length, pulse width setting
WR6
←
000Ah Write
// Split length 10
WR7
←
0005h Write
// Pulse width 5
WR0
←
0117h Write
// Split pulse number setting
WR6
←
0320h Write
// Split pulse number 800
WR0
←
0118h Write
// Split pulse logic, starting pulse setting
WR6
←
0800h Write
// D10
0 SPLL
:
Pulse logic Positive
// D11
1 SPLBP
:
With starting pulse
WR0
←
0122h Write
// Multi-purpose register setting
// MR0 setting
WR6
←
1387h Write
// MR0 4999
WR7
←
0000h Write
WR0
←
0110h Write
// MR1 setting
WR6
←
2710h Write
// MR1 10000
WR7
←
0000h Write
WR0
←
0111h Write
// MR2 setting
WR6
←
0004h Write
// Split length 4
WR7
←
0002h Write
// Pulse width 2
WR0
←
0112h Write
// Multi-purpose register mode setting
WR6
←
0000h Write
// D1,D0 00 M0T1,0
:
MR0 Comparative object
Logical position counter
// D3,D2 00 M0C1,0
:
MR0 Comparison condition
≧
// D5,D4 00 M1T1,0
:
MR1 Comparative object
Logical position counter
// D7,D6 00 M1C1,0
:
MR1 Comparison condition
≧
WR0
←
0120h Write