User`s manual
http://www.adtechcn.com   82 
********************************************************************/ 
int CCtrlCard::Interp_Move4(long value1, long value2, long value3, long value4) 
{    
  Result = adt8840a_inp_move4(devnum,0, value1, value2, value3, value4); 
 return Result; 
} 
/********************************* stop running********************************** 
This function is used to stop running, including immediate stop and stop by deceleration 
Parameters: axis-axis number; mode: deceleration method (0-immediate stop; 1-stop by 
deceleration) 
Return value=0: correct; return value=1: error 
******************************************************************************/ 
int CCtrlCard::StopRun(int axis, int mode) 
{ 
  if(mode == 0) // immediate stop 
 { 
 Result = adt8840a_sudden_stop(devnum, axis); 
  } 
 else   // stop by deceleration 
 { 
 Result = adt8840a_dec_stop(devnum, axis); 
  } 
 return Result; 
} 
/***************function to get to know the drive status of axis************************ 
This function is used to get to know the drive status and interpolation status of each axis 
Parameters: axis-axis number; value-status pointer (0-drive end; non-0: drive under way) 
Mode (0-get to know the drive status of single axis; 1- get to know the drive status of 
interpolation 
Return value=0: correct; return value=1: error 
***************************************************************************/ 
int CCtrlCard::Get_Status(int axis, int &value, int mode) 
{ 
  if (mode==0)   / get to know the drive status of single axis 
 Result=adt8840a_get_status(devnum,axis,&value); 
  else   // get to know the drive status of interpolation 
 Result=adt8840a_get_inp_status(devnum,&value); 
 return Result; 
} 










