
ICPDAS
I-8092F Software User Manual
148
Circular Interpolation Functions
i8092_ARC_CW
Format:
void
i8092_ARC_CW(
unsigned char
cardNo,
long
cp1,
long
cp2,
long
fp1,
long
fp2)
Function:
CW direction circular interpolation.
Parameters:
cardNo
is the board number.
cp1
is the center for axis1.
cp2
is the center for axis2.
fp1
is the finish point for axis1.
fp2
is the finish point for axis2.
Example:
i8092_ARC_CW(1, -5000, -5000, -10000, -10000);
Fig. A-34 CW circular interpolation
Demo Program:
linear interpolation
Parameters:
cardNo=1
// 2-Axis Linear Interpolation
i8092_MOTION_TYPE(cardNo, CONST2);
// Set 2-Axes Constant Vector Speed Mode
i8092_SET_R(CardNo, Card[cardNo].ax1, 8000000);
i8092_SET_R(cardNo,Card[cardNo].ax2, 8000000*1414L/1000L);
i8092_SET_V(cardNo, Card[cardNo].ax1, 1000);
i8092_LINE_2D(cardNo,3000,4000);
// 2-Axes Interpolation