User`s manual
http://www.adtechcn.com 81
/*********************single-axis function**********************
This function is used for driving the single axis
Parameters: axis- axis number; pulse- number of output pulse
Return value=0: correct; return value=1: error
**********************************************************/
int CCtrlCard::Axis_Pmove(int axis, long value)
{
Result = adt8840a_pmove(devnum,0, axis, value);
return Result;
}
/*******************function for interpolation of any two axes********************
This function is used to drive any two axes for interpolation
Parameters: axis1 , axis2 – axis number engaged in the interpolation; value1,
value2-number of pulses
Return value=0: correct; return value=1: error
*************************************************************************/
int CCtrlCard::Interp_Move2(int axis1, int axis2, long value1, long value2)
{
Result = adt8840a_inp_move2(devnum,0, axis1, axis2, value1, value2);
return Result;
}
/******************* function for interpolation of any three axes ********************
This function is used to drive any three axes for interpolation
Parameters: axis1, axis2 , axis3– axis number engaged in the interpolation;
value1,value2,value3—number of pulses
Return value=0: correct; return value=1: error
**************************************************************************/
int CCtrlCard::Interp_Move3(int axis1, int axis2, int axis3, long value1, long value2, long value3)
{
Result = adt8840a_inp_move3(devnum,0, axis1, axis2, axis3, value1, value2, value3);
return Result;
}
/*******************function for interpolation of four axes********************
This function is used to drive the four axes—XYZW for interpolation
Parameters: value1,value2,value3,value4-number of output pulses
Return value=0: correct; return value=1: error