User`s manual

http://www.adtechcn.com 3
2.1 ADT8840A_GET_STATUS( ) ........................................................................................................ 39
2.2
ADT8840A_GET_INP_STATUS( ) ................................................................................................. 39
2.3
ADT8840A_GET_INT_STATUS( ) ................................................................................................. 39
) 3. Motion parameters setup........................................................................................................... 41
3.1 ADT8840A_SET_ACC( ).............................................................................................................. 40
3.2
ADT8840A_SET_STARTV( ) ........................................................................................................ 40
3.3
ADT8840A_SET_SPEED( )........................................................................................................... 41
3.4
ADT8840A_SET_COMMAND_POS( ) ........................................................................................... 41
3.5
ADT8840A_SET_ACTUAL_POS( )................................................................................................ 42
) 4. Motion parameters detection..................................................................................................... 44
4.1 ADT8840A_GET_COMMAND_POS( )........................................................................................... 43
4.2
ADT8840A_GET_ACTUAL_POS( ) ............................................................................................... 43
4.3
ADT8840A_GET_SPEED( ) .......................................................................................................... 43
4.4
ADT8840A_ALL_COMMAND_POS( ) ........................................................................................... 44
4.5
ADT8840A_ALL_ACTUAL_POS( ) ............................................................................................... 44
4.6
ADT8840A_ALL_SPEED( ) .......................................................................................................... 44
) 5. Drive ......................................................................................................................................... 46
5.1 ADT8840A_PMOVE( ) ................................................................................................................. 45
5.2
ADT8840A_PMOVE2( ) ............................................................................................................... 45
5.3
ADT8840A_PMOVE3( ) ............................................................................................................... 45
5.4
ADT8840A_PMOVE4( ) ............................................................................................................... 46
5.5
ADT8840A_DEC_STOP( ) ............................................................................................................ 46
5.6
ADT8840A_SUDDEN_STOP( )...................................................................................................... 47
5.7
ADT8840A_INP_MOVE2( ).......................................................................................................... 47
5.8
ADT8840A_INP_MOVE3( ).......................................................................................................... 47
5.9
ADT8840A_INP_MOVE4( ).......................................................................................................... 47
5.10
ADT8840A_CONTINUE_MOVE( )............................................................................................... 48
5.11
ARCCOMP( )............................................................................................................................. 48
5.12
ADT8840A_ARC( ).................................................................................................................... 49
) 6. Input and output of switch value............................................................................................... 51
6.1 ADT8840A_READ_BIT( ) ............................................................................................................ 50
6.2
ADT8840A_WRITE_BIT( )........................................................................................................... 50
6.3
ADT8840A_SUDDEN_WRITE_BIT................................................................................................ 50
6.4
ADT8840A_READ_8BIT( )........................................................................................................... 51
) 7. Intermit function ....................................................................................................................... 52
7.1 ADT8840A_CLEAR_INT( ) .......................................................................................................... 51
7.2
ADT8840A_ENABLE_INT( ) ........................................................................................................ 51
7.3
ADT8840A_DISABLE_INT( ) ....................................................................................................... 51
) 8. Hardware buffer ........................................................................................................................ 53
8.1
ADT8840A_RESET_FIFO( ).......................................................................................................... 52
8.2
ADT8840A_READ_FIFO( )........................................................................................................... 52
8.3
ADT8840A_ FIFO_INP_MOVE1() ................................................................................................. 52
8.4
ADT8840A_ FIFO_INP_MOVE2() ................................................................................................. 53
8.5
ADT8840A_ FIFO_INP_MOVE3() ................................................................................................. 53