ICPDAS
I-8092F Software User Manual
143
i8092_DRV_START
Format:
void
i8092_DRV_START(
unsigned char
cardNo,
WORD
axis)
Function:
Drive status holding release/finishing status clearing setting.
Parameters:
cardNo
is the board number.
axis
is the motion axis code/name, as shows in Table 2-1.
Example:
i8092_DRV_SATRT(1, 0xf);
Fig. A-31 Symmetry T-curve acc/dec
Demo Program:
T/S-curve acc/dec motion [Symmetry]
Parameters:
cardNo=1, motion axes=0x3 (AXIS_XY)
i8092_SET_R(cardNo, 0x3, 800000);
// R=800000, Multiple=10
i8092_SET_TCURVE(cardNo, 0x3);
// Set T-Curve Mode
i8092_SET_SYMMETRY(cardNo, 0x3);
// Set symmetry mode for X, Y axes
i8092_SET_SV(cardNo, 0x3, 100);
// SV=100,Iinitial Speed=1000 (PPS)
i8092_SET_V(cardNo, 0x3, 1000);
// V=1000, Drive Speed=10000 (PPS)
i8092_SET_A(cardNo, 0x3, 80);
// A=80, Acceleration=100K (PPS/Sec)
i8092_SET_PULSE(cardNo, 0x3, 25000);
// Driving Pulse=25000
i8092_DRV_HOLD(card, 0x3);
// Holding for driving starting
i8092_DRV_FDRIVE(cardNo, 0x3, 0);
// X-Axis Positive Fixed Pulse Drive
i8092_DRV_START(card, 0x3);
// Holding Release