User`s manual

http://www.adtechcn.com 68
'Parameters: axis1 , axis2 – axis number engaged in the interpolation
pulse1, pulse2-number of output pulses of the corresponding axis
'Return value=0: correct; return value=1: error
'*******************************************************
Public Function Interp_Move2(ByVal axis1 As Integer, ByVal axis2 As Integer, ByVal pulse1 As
Long, ByVal pulse2 As Long) As Integer
Result = adt8840a_inp_move2(devnum, 0, axis1, axis2, pulse1, pulse2)
Interp_Move2 = Result
End Function
'******************* 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
pulse1, pulse2, pulse3-number of output pulses of the corresponding axis
'Return value=0: correct; return value=1: error
'******************************************************************************
Public Function Interp_Move3(ByVal axis1 As Integer, ByVal axis2 As Integer, ByVal axis3 As
Integer, ByVal pulse1 As Long, ByVal pulse2 As Long, ByVal pulse3 As Long) As Integer
Result = adt8840a_inp_move3(devnum, 0, axis1, axis2, axis3, pulse1, pulse2, pulse3)
Interp_Move3 = Result
End Function
'*******************function for interpolation of four axes***********************
' This function is used to drive the four axes—XYZW for interpolation
'Parameters: pulse1, pulse2, pulse3-number of output pulses of the corresponding axis
'Return value=0: correct; return value=1: error
'*************************************************************************
Public Function Interp_Move4(ByVal pulse1 As Long, ByVal pulse2 As Long, ByVal pulse3 As
Long, ByVal pulse4 As Long) As Integer
Result = adt8840a_inp_move4(devnum, 0, pulse1, pulse2, pulse3, pulse4)
Interp_Move4 = Result
End Function
'*******************function for stopping running********************************
'This function is used to stop running, including immediate stop and stop by deceleration
'Parameters: axis-axis number; mode: 0-immediate stop; 1-stop by deceleration
'Return value=0: correct; return value=1: error
'*************************************************************************