beautypg.com

Delta Electronics High-Speed PCI 12-Axis Motion Control Card PCI-DMC-A01 User Manual

Page 56

background image

Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01

3-34

Revised March, 2012

Cen_X item: Center's x-coordinate. API function's argument variable

“arc3_cen_x”.
Cen_Y

item:

Center's y-coordinate. API function's argument variable

“arc3_cen_y”.

End_X item: Endpoint's x-coordinate. API function's argument variable
“arc3_end_x”.

End_Y

item:

Endpoint's Y-coordinate. API function's argument variable

“arc3_end_y”.

Dir

item: Direction. API function's argument variable “arc3_dir”.

When this value is 0, the servo motor will rotate clockwise (CW).
When this value is 1, the servo motor will counterclockwise (CCW).

5) Set Servo Motor Power ON/OFF(servo on/servo off)

Figure 3.52

Click on the “SVON” button to execute the following procedure:

rt = _DMC_01_ipo_set_svon(gDMCCardNo, NodeID, SlotID , ON_OFF);

// ON_OFF: 0 – Servo Power OFF; 1 – Servo Power ON

6) Start 2-axis arc interpolation motion control

Click on the “” or ““ button to execute the following procedure:
2-axis arc interpolation using interpolation method 1 (Arc1):

rt = _DMC_01_start_sa_arc_xy(gDMCCardNo, gArcNode, gSlot2, arc1_cen_x,
arc1_cen_y, arc1_angle, StrVel, MaxVel, acc, dec);

// Arc interpolation motion using absolute coordinates under the S-curve velocity
cross-section

rt = _DMC_01_start_ta_arc_xy(gDMCCardNo, gArcNode, gSlot2, arc1_cen_x,
arc1_cen_y, arc1_angle, StrVel, MaxVel, acc, dec);

// Arc interpolation motion using absolute coordinates under the T-curve velocity
cross-section

rt = _DMC_01_start_sr_arc_xy(gDMCCardNo, gArcNode, gSlot2, arc1_cen_x,
arc1_cen_y,

arc1_angle, StrVel, MaxVel, acc, dec);

// Arc interpolation motion using relative coordinates under the S-curve velocity
cross-section

rt = _DMC_01_start_tr_arc_xy(gDMCCardNo, gArcNode, gSlot2, arc1_cen_x,
arc1_cen_y, arc1_angle, StrVel, MaxVel, acc, dec);

// Arc interpolation motion using relative coordinates under the T-curve velocity
cross-section

This manual is related to the following products: