NOVA electronics Inc. MCX514 -
151
-
151
-
■
Example 2 Continuous Interpolation in Multichip Interpolation
The following example A, B, C and ERROR handling are the same as Example 1.
【
Program Example
】
// Interpolation mode setting of main and sub chips
// Writing to main chip
WR6
←
0403h Write
// Main chip Designation of X,Y Interpolation axis
WR0
←
002Ah Write
// Writing to sub chip1
WR6
←
0803h Write
// Sub chip Designation of X,Y Interpolation axis
WR0
←
002Ah Write
// Writing to sub chip2
WR6
←
0803h Write
// Sub chip Designation of X,Y Interpolation axis
WR0
←
002Ah Write
// Driving parameters setting to main axis of main chip (2M PPS constant speed driving)
WR6
←
1200h Write
// Initial speed 8M PPS (maximum in specification)
WR7
←
007Ah Write
WR0
←
0104h Write
WR6
←
8480h Write
// Drive speed 2M PPS
WR7
←
001Eh Write
WR0
←
0105h Write
// Write drive start holding command to main axis of main chip
WR0
←
0177h Write
// Writing of finish point data and Receiving error check
// Seg1
// Writing to main chip
WR6
←
0014h Write
// Finish point1 X 20
WR7
←
0000h Write
WR0
←
0106h Write
// Execute the handling A
// Execute the handling B
WR6
←
000Ah Write
// Finish point1 Y 10
WR7
←
0000h Write
WR0
←
0206h Write
// Execute the handling A
// Execute the handling B
// Writing to sub chip1
WR6
←
FFF6h Write
// Finish point1 X -10
WR7
←
FFFFh Write
WR0
←
0106h Write
// Execute the handling C
// Execute the handling B
WR6
←
0005h Write
// Finish point1 Y 5
WR7
←
0000h Write
WR0
←
0206h Write
// Execute the handling C
// Execute the handling B
// Writing to sub chip2
WR6
←
0019h Write
// Finish point1 X 25
WR7
←
0000h Write
WR0
←
0106h Write
// Execute the handling C
// Execute the handling A
WR6
←
FFF4hWrite
// Finish point1 Y -12
WR7
←
FFFFhWrite
WR0
←
0206h Write
// Execute the handling C
// Execute the handling A
// Write interpolation command in the order of sub chip and main chip
// Writing to sub chip1
WR0
←
0061h Write
// 2-axis linear
interpolation
// Writing to sub chip2
WR0
←
0061h Write
// 2-axis linear
interpolation