User`s manual
http://www.adtechcn.com 46
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.4 adt8840a_pmove4( )
Name
int
adt8840a_
pmove(int dev_num,int axis, long pulse)
Definition Preset drive
Input parameter
dev_num: device number
long pulse1: relative distance that axis 1 travels
long pulse2 : relative distance that axis 2 travels
long pulse3: relative distance that axis 3 travels
long pulse4: relative distance that axis 4 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.5 adt8840a_dec_stop( )
Name
int
adt8840a_
dec_stop(int dev_num,int axis)
Definition Drive deceleration stop
Input parameter
dev_num: device number
axis: axis number (1 - 4)
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
In the process of outputting drive pulses, this command is used to stop the deceleration.
Even when the drive velocity is lower than the start velocity, you can also use it to stop the
deceleration immediately.