User`s manual
http://www.adtechcn.com   91 
// read positive/negative limit and stop0   // 
//*********************************************************// 
void CVCExampleDlg::OnTimer(UINT nIDEvent) 
{ 
 long log=0,act=0,spd=0; 
 UINT nID1[]={IDC_POS_LOGX,IDC_POS_LOGY,IDC_POS_LOGZ,IDC_POS_LOGW}; 
 UINT nID2[]={IDC_POS_ACTX,IDC_POS_ACTY,IDC_POS_ACTZ,IDC_POS_ACTW}; 
 UINT 
nID3[]={IDC_RUNSPEED_X,IDC_RUNSPEED_Y,IDC_RUNSPEED_Z,IDC_RUNSPEED_W}
; 
 CStatic *lbl; 
 CString str; 
 int status[4]; 
  for (int i=1; i<MAXAXIS+1; i++) 
 { 
    g_CtrlCard.Get_CurrentInf(i,log,act,spd);  // get the logic position, actual position, 
running speed and drive status 
 //********display logic position ********// 
 lbl=(CStatic*)GetDlgItem(nID1[i-1]); 
 str.Format("%ld",log); 
    lbl->SetWindowText(str);   
 //******** display actual position ********// 
 lbl=(CStatic*)GetDlgItem(nID2[i-1]); 
 str.Format("%ld",act); 
 lbl->SetWindowText(str); 
 //******** display running speed ********// 
 lbl=(CStatic*)GetDlgItem(nID3[i-1]); 
   // without speed ratio, actual speed=obtained value 
 str.Format("%ld",spd); 
 lbl->SetWindowText(str); 
 //******get drive status******// 
 g_CtrlCard.Get_Status(i,status[i-1],0); 
 } 
 //******************signal detection***************** 
 // Axis X’s STOP0 0 Axis Y’s STOP0 1 
 // Axis Z’s STOP0 2 Axis A’s STOP0 3 
 // Positive limit of axis X -4  Negative limit of axis X-5 
 // Positive limit of axis Y -4 Negative limit of axis Y-5 
 // Positive limit of axis Z -8   Negative limit of axis Z-9 
 // Positive limit of axis A -10 Negative limit of axis A-11 










