
ICPDAS
I-8092F Software User Manual
69
YES
An error has occurred. Use the
i8092MF_GET_ERROR_CODE () function to identify the error.
NO
No
errors.
Example:
BYTE cardNo=1;
//select module 1.
int
sv=100;
//set the starting speed to 100 PPS.
int
v=3000;
//set the speed to 3000 PPS.
int
a=2000;
//set the acceleration to 2000 PPS/Sec.
in
t d=2000;
//set the deceleration to 2000 PPS/Sec.
i8092MF_SET_MAX_V(cardNo, AXIS_XY, 20000);
//set the maximum speed to 20K PPS
.
BYTE nType[10]= { 1, 2, 1, 2, 1,7,0,0,0,0};
long
cp1[10]= { 0, 10000, 0, 0, 0,0,0,0,0,0};
long
cp2[10]= { 0, 0, 0,-10000, 0,0,0,0,0,0};
long
fp1[10]= { 10000, 10000, 1000, 10000,-31000,0,0,0,0,0};
long
fp2[10]= { 10000, 10000, 0,-10000,-10000,0,0,0,0,0};
//put data of the required segments in arrays.
i8092MF_CONTIUNE_INTP(
cardNo, AXIS_X, AXIS_Y, 0, 1, sv, v, a, d, nType, cp1, cp2, fp1, fp2);
//execute the 2-axis continuous interpolation.
//The deceleration point will be calculated automatically.
//For this example, the final position of this motion will return to the starting
point.
6.3.4 2-Axis Ratio Motion
BYTE
i8092MF_RATIO_INITIAL(
BYTE
cardNo
,
DWORD
SV
,
DWORD
V
,
DWORD
A,
float
ratio
)
Description:
This function sets the Initial values for ratio motion (motion in ratio) using a
symmetric T-curve speed profile. However, it is a software macro-function;
therefore, it requires CPU resource to run this function.
Parameters:
cardNo
:
Module number
SV
:
Set the value for the starting speed ( in PPS).
V
:
Set the value for the vector speed (in PPS).
A
:
Set the acceleration value (in PPS/Sec).
ratio
:
Set the ratio value between the two assigned axes.