User`s manual
http://www.adtechcn.com   2 
Contents 
Chapter I Overview ....................................................................................................... 7 
) About the prodcut ........................................................................................................................... 7 
) Features........................................................................................................................................... 7 
) Specification ................................................................................................................................... 8 
) Outer dimensions ............................................................................................................................ 9 
) Operating environment ................................................................................................................. 10 
) Application.................................................................................................................................... 10 
Chapter II Electric Wiring ........................................................................................ 10 
) Illustration and definition for terminals ........................................................................................11 
) Connecting to power supply ........................................................................................................ .20 
) Standard USB interface (USB) .................................................................................................... .21 
) Standard Ethernet interface (RJ45) ............................................................................................... 21 
) Connection for input signal........................................................................................................... 21 
) Connection for pulse output signal ............................................................................................... 22 
) Connection for output signal......................................................................................................... 23 
) Connection for communication signal .......................................................................................... 23 
Chapter III Features.................................................................................................. 24 
) Preset drive.................................................................................................................................... 24 
) Continuous drive........................................................................................................................... 25 
) Velcoity curve ............................................................................................................................... 25 
) Set-speed drive.............................................................................................................................. 25 
) Speed mode................................................................................................................................... 27 
) Buffer mode .................................................................................................................................. 27 
) Position management .................................................................................................................... 28 
) Interpolation.................................................................................................................................. 29 
) Pulse output mode......................................................................................................................... 30 
) Hardware limit signal.................................................................................................................... 31 
) Signal corresponding to server motor ........................................................................................... 31 
) Drive by external signal ................................................................................................................ 31 
Chapter IV Basic Library Functions of ADT8840.................................................... 32 
Chapter V Definitions of Functions in ADT8840's Basic Library.............................. 37 
) 
1. Basic parameters setup.............................................................................................................. 37 
1.1 D
EVICEADDR_INIT( )................................................................................................................. 36 
1.2 TCP_C
ONN ( ) ........................................................................................................................... 36 
1.3 C
LOSE_NETCONN ( ) .................................................................................................................. 36 
1.4 C
LOSE_ALL ( ) ........................................................................................................................... 36 
1.5 G
ET_SOCK ( )............................................................................................................................. 37 
1.6 U
ART_SHOW ( ).......................................................................................................................... 37 
1.7 
ADT8840A_SET_STOP0_MODE( ) ............................................................................................... 37 
1.8 
ADT8840A_SET_STOP1_MODE( ) ............................................................................................... 37 
1.9 
ADT8840A_SET_LIMIT_MODE( ) ................................................................................................ 38 
1.10 
ADT8840A_SET_PULSE_MODE( ) ............................................................................................... 38 
) 2. Drive status detection….40 










