Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01
42.1 _misc_app_get_circle_endpoint
FORMAT
I16 PASCAL _misc_app_get_circle_endpoint (I32 Start_X, I32 Start_Y, I32 Center_X,
I32 Center_Y, F64 Angle, I32* End_x, I32* End_y)
Purpose
Retrieves endpoint coordinates (X, Y) required for arc interpolation.
Parameters
Name
Data Type
Start_X
Start_Y
Center_X
Center_Y
Angle
End_x
End_y
Example
I32 Start_X=0, Start_Y=0;
I32 Center_X=100000, Center_Y=0;
I32 End_x, End_y;
F64 Angle=180;
I16 status = _misc_app_get_circle_endpoint (Start_X, Start_Y, Center_X, Center_Y, Angle,
&End_x, &End_y);
42-2
I32
Number of pulses
I32
Number of pulses
I32
Number of pulses
I32
Number of pulses
F64
Degree (°)
I32*
Number of pulses
I32*
Number of pulses
Unit
Starting X-coordinate
Starting Y-coordinate
Center point's X-coordinate.
Center point's Y-coordinate.
Set arc angle. One full arc is 360
Endpoint's X-coordinate.
Endpoint's Y-coordinate.
Description
o
Revised March, 2012