ICPDAS
I-8092F Software User Manual
136
i8092_SET_A
Format:
void
i8092_SET_A(
unsigned char
cardNo,
WORD
axis,
WORD
data)
Function:
The function is setting the acceleration or deceleration of the trapezoidal driving. For
S-curve acceleration / deceleration, it shows the linear acceleration until a specific
value (A) driving. The acceleration calculation is shown in the following formula:
Driving Acceleration(PPS/Sec)
=
A×125×M
Parameters:
cardNo
is the board number.
axis
is the motion axes code/name, as shows in Table 2-1.
data
is value of acceleration, it’s range is 1~8000, other values are invalid.
Example:
//Set the acceleration 80 (PPS/Sec) for X axis.
i8092_SET_A(1, 0x1, 80);
Note:
2. In fixed pulse S-curve acceleration / deceleration driving, there is no way to
change the drive speed during the driving. In continuous S-curve acceleration /
deceleration driving, the S-curve profile cannot be exactly tracked if the speed
alterations during the acceleration/deceleration. It is better to change the drive speed
in the constant speed period.