
ICPDAS
I-8092F Software User Manual
72
BYTE
i8092MF_MIX_2D_CONTINUE(
BYTE
cardNo
,
WORD
nAcc
,
WORD
nType
,
long
cp1
,
long
cp2
,
long
fp1
,
long
fp2
)
Description:
This function executes mixed linear and circular 2-axis motion in continuous
interpolation. However, it is a software macro-function; therefore, it requires
CPU resource to run this function.
Parameters:
cardNo
:
Module number
nAcc
: 0 continuous interpolation.
1 it is the last command of this continuous interpolation. In
Acc/Dec mode, it will perform a deceleration stop. In
constant speed mode, it will directly stop rather than
decelerate.
nType
:
1 i8092MF_LINE_2D(
BYTE
cardNo
,
long
fp1
,
long
fp2
);
2 i8092MF_ARC_CW(
BYTE
cardNo
,
long
cp1
,
long
cp2
,
long
fp1
,
long
fp2
);
3 i8092MF_ARC_CCW(
BYTE
cardNo
,
long
cp1
,
long
cp2
,
long
fp1
,
long
fp2
);
4 i8092MF_CIRCLE_CW(
BYTE
cardNo
,
long
cp1
,
long
cp2
);
5 i8092MF_CIRCLE_CCW(
BYTE
cardNo
,
long
cp1
,
long
cp2
);
cp1
:
It assigns the center point data at X-axis.
(
-8,388,607 ~ +8,388,607
)
cp2
:
It assigns the center point data at Y-axis.
(
-8,388,607 ~ +8,388,607
)
fp1
:
It
assigns
the
end
point data at X-axis.
(
-8,388,607 ~ +8,388,607
)
fp2
:
It
assigns
the
end
point data at Y-axis.
(
-8,388,607 ~ +8,388,607
)
Return:
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=300;
//starting speed: 300 PPS
int
v=18000;
//vector speed: 18000 PPS
long
a=500000;
//acceleration: 500000 PPS/Sec
unsigned short
loop1;
i8092MF_SET_MAX_V(cardNo, AXIS_XY, 160000);