
ICPDAS
I-8092F Software User Manual
65
6.3 Continuous Interpolation
If it is broken and stopped
,
please solve it refer in section 6.5.5 !
6.3.1 2-Axis Rectangular Motion
BYTE
i8092MF_RECTANGLE(
BYTE
cardNo
,
WORD
nAcc
,
WORD
Sp
,
WORD
nDir
,
long
Lp
,
long
Wp
,
long
Rp
,
DWORD
RSV
,
DWORD
RV
,
DWORD
RA
,
DWORD
RD
)
Description:
Continuous interpolation will be performed to create a rectangular motion,
which is formed by 4 lines and 4 arcs. The length of each side can be changed. The
radius of each arc is the same and it can also be changed. The deceleration point
will be calculated automatically. This is a command macro command that appears
in various motion applications. However, it is a software macro-function; therefore,
it requires CPU resource to run this function.
Parameters:
cardNo
:
Module number
nAcc
: 0 constant vector speed interpolation mode
1 symmetric T-curve Acc/Dec interpolation mode
Sp
:
Start point 0 ~ 7. (Sp0 ~ Sp7 are defined in the following
figure)
nDir
: Direction
of
movement
0: CCW; 1: CW
Lp
:
Length
in
Pulses
(
1 ~ 8,388,607
)
Wp
:
Width in Pulses (
1 ~ 8,388,607
)
Rp
:
Radius of each in pulses (
1 ~ 8,388,607
)
RSV
:
Starting speed (in PPS)
RV
:
Vector speed (in PPS)
RA
:
Acceleration
(PPS/Sec)
RD
:
Deceleration
of
the
last segment (in PPS/Sec)
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=1000;
//starting speed: 1000 PPS.