
ICPDAS
I-8092F Software User Manual
175
Demo Program:
Advanced application for synchronous motion: X,Y axes circular
interpo Z axis fixed-pulse drive
Parameters:
cardNo=1, tempSV=100 (initial speed for XY circular interpolation), tempV=2000
(Drive speed for XY circular interpolation), tempA=80 (The acceleration for XY
interpolation), tempVZ=687 (The constant speed for Z axis), tempDP=13963
(Deceleration point for XY circular interpolation)
Description:
Set the inclined plane is X,Y-axes and the vertical plane is Z-axis
And the radius of the circle is 5000 and the angle of inclination is 30.
// Set parameters s for total axes or you can also set for individual axis
i8092_SET_SV(cardNo,
TotalAxis,
tempSV);
i8092_SET_V(cardNo,
TotalAxis,
tempV);
i8092_SET_A(cardNo,
TotalAxis,
tempA);
// Select the master axis
i8092_AXIS_ASSIGN(cardNo, AXIS_X, AXIS_Y, 0);
// Acc mode setting
i8092_MOTION_TYPE(cardNo,
ACCMODE);
// T-curve acc mode setting
i8092_SET_TCURVE(cardNo,
Card[cardNo].plane);
// Deceleration enabled
i8092_DEC_ENABLE(cardNo);
// 2-axes circular interplation mode setting
i8092_SET_R(cardNo, Card[cardNo].ax1, 8000000L);
i8092_SET_R(cardNo, Card[cardNo].ax2, 8000000L *1414L/1000L);
// Set parameters for X,Y axes
i8092_SET_SV(cardNo,
AXIS_X,
tempSV);
i8092_SET_V(cardNo,
AXIS_X,
tempV);
i8092_SET_A(cardNo,
AXIS_X,
tempA);
// Set parameters for Z axis
i8092_SET_R(cardNo,
AXIS_Z,
templong);
i8092_SET_SV(cardNo,
AXIS_Z,
tempVZ);
i8092_SET_V(cardNo,
AXIS_Z,
tempVZ);
// Synchronous action provocative factor: D-STA
// 1st seg
i8092_SYNC_MODE(cardNo,
AXIS_X,
0x4010,
0x0000);
i8092_SYNC_MODE(cardNo, AXIS_Z, 0x0000, 0x0002);
i8092_SET_MANDEC(cardNo,
AXIS_X,
tempDP);
i8092_ARC_CW(cardNo, 0, -5000, 0, -10000);
i8092_SET_PULSE(cardNo,
AXIS_Z,
5000);
i8092_DRV_FDRIVE(cardNo,
AXIS_Z,
1);
// Wait for drive stop
i8092_STOP_WAIT(cardNo, AXIS_XYZ);