Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


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