NOVA electronics Inc. MCX514 -
130
-
130
-
3.5.1 Constant Vector Speed Setting
Constant vector speed can be set by 2 bits, D6 and D7 of interpolation mode setting command (2Ah).
D7
D6
D5
D4
H
L
D15
D14
D13
D12
D11
D10
D9
D8
D3
D2
D1
D0
WR6
SPD0
SPD1
The settings of D6 and D7 bits corresponding to each constant vector speed mode are as follows.
Table 3.5-1 Settings of Constant Vector Speed Mode
D7(SPD1) Bit
D6(SPD0) Bit
Constant Vector Speed Mode
0
0
Invalid
0
1
2-axis simple constant vector speed
1
0
3-axis simple constant vector speed
1
1
2-axis high accuracy constant vector speed
■
Example of linear interpolation in 2-axis high accuracy constant vector speed mode
It performs linear interpolation of X and Y axes with drive speed: 1000PPS at constant speed in 2-axis high accuracy constant
vector speed mode, and short axis pulse equalization mode is enabled.
// Set interpolation mode
WR6
←
01C3h Write
// XY axes interpolation, 2-axis high accuracy constant vector speed mode,
//
Short axis pulse equalization mode enabling
WR0
←
002Ah Write
// Interpolation mode setting command
// Set drive speed to main axis
WR6
←
03E8h Write
// Initial speed
:
1000pps
WR7
←
0000h Write
WR0
←
0104h Write
WR6
←
03E8h Write
// Drive speed
:
1000pps
WR7
←
0000h Write
WR0
←
0105h Write
// Set Finish point
WR6
←
03E8h Write
// Finish point X
:
1000
WR7
←
0000h Write
WR0
←
0106h Write
WR6
←
0190h Write
// Finish point Y
:
400
WR7
←
0000h Write
WR0
←
0206h Write
// Start interpolation driving
WR0
←
0061h Write
// 2-axis linear interpolation driving