
ICPDAS
I-8092F Software User Manual
68
6.3.3 Multi-Segment Continuous Interpolation (Using Array)
BYTE
i8092MF_CONTINUE_INTP(
BYTE
cardNo
,
WORD
nAcc
,
DWORD
VSV
,
DWORD
VV
,
DWORD
VA
,
DWORD
VD
,
BYTE
nType[ ]
,
long
cp1[ ]
,
long
cp2[ ]
,
long
fp1[ ]
,
long
fp2[ ]
)
Description:
This function executes a multi-segment continuous interpolation. Those
segments are stored in arrays declared in the arguments . The speed profile
can be either a constant speed or a symmetric T-curve. The deceleration point
will be calculated automatically. However, it is a software macro-function;
therefore, it requires CPU resource to run this function.
Parameters:
cardNo
:
Module number
nAcc
: 0 a constant speed interpolation. Please set VV.
1 a symmetric T-curve interpolation. Please set VSV, VV, VA,
and VD.
VSV
:
The starting speed (in PPS)
VV
:
Interpolation vector speed (in PPS)
VA
:
Acceleration
(in
PPS/Sec)
VD
:
Deceleration (in PPS/Sec)
nType[ ]
:
Maximum segment: 1024 (0 ~ 1023). It contains the
interpolation commands defined as follows.
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
);
7 It indicates the end of continuous interpolation.
cp1[ ]
:
It contains a list of segment center point data at axis 1.
(
-8,388,607 ~ +8,388,607
)
cp2[ ]
:
It contains a list of segment center point data at axis 2.
(
-8,388,607 ~ +8,388,607
)
fp1[ ]
:
This array contains a list of segment end point data at axis 1.
(
-8,388,607 ~ +8,388,607
)
fp2[ ]
:
This array contains a list of segment end point data at axis 2.
(
-8,388,607 ~ +8,388,607
)
Return: