17 continuous motion – ADLINK PCI-8154 User Manual
Page 207

Function Library
197
6.17 Continuous motion
@ Name
_8154_set_continuous_move
– Enable continuous motion for
absolute motion
_8154_check_continuous_buffer
– Check if the buffer is
empty
_8154_dwell_move
– Set a dwell move
@ Description
_8154_set_continuous_move
:
This function is necessary before and after continuous motion
command sequences
_8154_check_continuous_buffer
:
This function is used to detect if the command pre-register
(buffer) is empty or not. Once the command pre-register
(buffer) is empty, users may write the next motion command
into it. Otherwise, the new command will overwrite the previous
command in the 2nd command pre-register. If the return code
is 1 means buffer is full. Otherwise return code is 0, buffer is
not full.
_8154_dwell_move
:
This function is used to start a dwell move that means the
move does not cause real motion for a specific time.
Example:
_8154_set_continuous_move( 2, 1 ); // start
continuous move
_8154_start_tr_move( 2, 20000.0, 10.0, 10000.0,
0.1, 0.1);
_8154_dwell_move( 2, 2000); //dwell move for 2
sec.
_8154_start_sr_move( 2, 20000.0, 10.0, 10000.0,
0.1, 0.1, 0, 0 );
_8154_set_continuous_move( 2, 0 ); //end
continuous move