User`s manual

http://www.adtechcn.com 90
else if(m_bX && m_bY && m_bZ && !m_bA) // interpolation of axis X, Y and Z
{
g_CtrlCard.Setup_Speed(1, Startv[0], Speed[0], Add[0]);
g_CtrlCard.Interp_Move3(1, 2, 3, Pulse[0], Pulse[1], Pulse[2]);
}
else if(m_bX && m_bY && !m_bZ && m_bA) // interpolation of axis X, Y and W
{
g_CtrlCard.Setup_Speed(1, Startv[0], Speed[0], Add[0]);
g_CtrlCard.Interp_Move3(1, 2, 4, Pulse[0], Pulse[1], Pulse[3]);
}
else if(m_bX && !m_bY && m_bZ && m_bA) // interpolation of axis X, Z and W
{
g_CtrlCard.Setup_Speed(1, Startv[0], Speed[0], Add[0]);
g_CtrlCard.Interp_Move3(1, 3, 4, Pulse[0], Pulse[2], Pulse[3]);
}
else if(!m_bX && m_bY && m_bZ && m_bA) // interpolation of axis Y, Z and W
{
g_CtrlCard.Setup_Speed(2, Startv[1], Speed[1], Add[1]);
g_CtrlCard.Interp_Move3(2, 3, 4, Pulse[1], Pulse[2], Pulse[3]);
}
//************ four-axis interpolation*************//
else if(m_bX && m_bY && m_bZ && m_bA) // interpolation of axis X, Y, Z and W
{
g_CtrlCard.Setup_Speed(1, Startv[0], Speed[0], Add[0]);
g_CtrlCard.Interp_Move4(Pulse[0], Pulse[1], Pulse[2], Pulse[3]);
}
else
{
MessageBox("Please select interaction axis!"," prompt");
}
}
2.4 Monitoring module
The monitoring module is used to get the information on axis’ drive and display the information
on motion, and at the same time, prevent the system from sending new drive commands during the
drive process. The monitoring module performs its functions through the timer, whose codes are
described as follows:
//********************get real-time information*************************//
// get the logic position, actual position, running speed and drive status //