User`s manual

http://www.adtechcn.com 88
g_CtrlCard.Setup_Speed(2, m_nStartvY, m_nSpeedY, m_nAddY);
}
if(m_bZ )
{
//************* set speed of axis Z **************//
g_CtrlCard.Setup_Speed(3, m_nStartvZ, m_nSpeedZ, m_nAddZ);
}
if(m_bA )
{
//************* set speed of axis A**************//
g_CtrlCard.Setup_Speed(4, m_nStartvA, m_nSpeedA, m_nAddA);
}
// drive command
//************* drive of axis X ***************//
if(m_bX)
g_CtrlCard.Axis_Pmove(1, m_nPulseX);
//************* drive of axis Y ***************//
if(m_bY)
g_CtrlCard.Axis_Pmove(2, m_nPulseY);
//************* drive of axis Z***************//
if(m_bZ)
g_CtrlCard.Axis_Pmove(3, m_nPulseZ);
//************ drive of axis A***************//
if(m_bA)
g_CtrlCard.Axis_Pmove(4, m_nPulseA);
if((!m_bX) && (!m_bY) && (!m_bZ) && (!m_bA))
MessageBox( "Please select interaction axis!"," prompt");
}
Interpolation codes are provided at the interpolation button where they can be accessed by
clicking, and send out corresponding drive commands based on the selected objective. The codes
are described as follows:
/*********************************
interpolation button acts
*********************************/
void CVCExampleDlg::OnButtonInpmove()
{
UpdateData();
long Startv[]={m_nStartvX,m_nStartvY,m_nStartvZ,m_nStartvA}; //start velocity
long Speed[]={m_nSpeedX,m_nSpeedY,m_nSpeedZ,m_nSpeedA}; //drive velocity long
Add[]={m_nAddX,m_nAddY,m_nAddZ,m_nAddA}; //acceleration
long Pulse[]={m_nPulseX,m_nPulseY,m_nPulseZ,m_nPulseA}; // number of axis’ drive
pulses