ICPDAS
I-8092F Software User Manual
61
6.2.9 2-Axis Circular Interpolation Motion (an Arc)
BYTE
i8092MF_ARC_CW(
BYTE
cardNo
,
long
cp1
,
long
cp2
,
long
fp1
,
long
fp2
)
Description:
This function executes a 2-axis circular interpolation motion in a clockwise
(CW) direction.
Parameters:
cardNo
:
Module number
cp1
:
The relative position of the center to the current position of
X-axis in pulses. (
-8,388,607 ~ +8,388,607
)
cp2
:
The relative position of the center to the current position of
Y-
axis in pulses. (
-8,388,607 ~ +8,388,607
)
fp1
:
The
displacement
of the X-axis in pulses.
(
-8,388,607 ~ +8,388,607
)
fp2
:
Displacement
of
the Y-axis in pulses.
(
-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:
i8092MF_ARC_CW(1, -5000, -5000, -10000, -10000);
//Issues a command to perform a circular motion (an arc)
//in a CW direction. Please refer to the following figure.
2-axis circular motion in a CW direction