NOVA electronics Inc. MCX514 -
149
-
149
-
3.10.5 Examples of Multichip Interpolation
Examples using 2 chips: main and sub chips are as follows.
■
Example 1 Multichip Interpolation with each chip of 2-axis X and Y
【
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
// Writing of finish point data and Receiving error check
// Writing to main chip
WR6
←
0014h Write
// Finish point1 X 20
WR7
←
0000h Write
WR0
←
0106h Write
// Receiving error check of sub chip1
Handling A
RR0
/
D4,D5 Read
If D4,D5=1, jump to ERROR(sub chip)
// Go to error handling
// Receiving error check of sub chip2
Handling B
RR0
/
D4,D5 Read
If D4,D5=1, jump to ERROR(sub chip)
// Go to error handling
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
// Receiving error check of main chip
Handling C
RR0
/
D4,D5 Read
If D4,D5=1, jump to ERROR(main chip)
// Go to error handling
// 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