User`s manual

http://www.adtechcn.com 45
) 5. Drive
5.1 adt8840a_pmove( )
Name
int
adt8840a_
pmove(int dev_num,int axis, long pulse)
Definition Preset drive
Input parameter
dev_num: device number
axis: axis number (1 - 4)
pulse: Output pulses
>0 Positive direction movement
<0 Negative direction movement
Scope (-268435455~+268435455)
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
The parameters needed by the velocity curve must be set before the drive command is
written.
5.2 adt8840a_pmove2( )
Name
int
adt8840a_pmove2(int dev_num,int axis1,int axis2 , long pulse1,long pulse2)
Definition Preset drive
Input parameter
dev_num: device number
int axis1: axis number engaged in interpolation
int axis2: axis number engaged in interpolation
long pulse1: relative distance that axis 1 travels
long pulse2 : relative distance that axis 2 travels
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
The parameters needed by the velocity curve must be set before the drive command is
written.
5.3 adt8840a_pmove3( )
Name
int
adt8840a_
pmove(int dev_num,int axis, long pulse)
Definition Preset drive