Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 40-3
Description
Mode Parameter Settings
Example
U16 CardNo=0, *NodeID=1, *SlotID=0;
I32 pos1_x=0, I32 pos1_y=10000;
I32 pos2_x=10000, I32 pos2_y=10000;
U16 mode=1; param=3000;
I32 StrVel=100, MaxVel=5000;
F64 Tacc=0.1, Tdec=0.1;
U16 m_curve=1;
U16 m_r_a=0;
/*Set as multi-axis motion control using absolute coordinates with T-curve velocity
cross-section. */
I16 status = _DMC_01_start_rline_xy (CardNo, &NodeID, &SlotID, pos1_x, pos1_y, pos2_x,
pos2_y, mode, param, StrVel, MaxVel, Tacc, Tdec, m_curve, m_r_a);
Figure 40.1 Mode = 0 Perpendicular
distance from arc to right angle (AB)
Figure 40.2 Mode = 1 Perpendicular distance
from start of arc to right angle (AB)
Figure 40.3 Mode = 2 Arc radius (AB)