16 continuous motion – ADLINK PCI-8158 User Manual

Page 199

Advertising
background image

Function Library

189

6.16 Continuous motion

@ Name

_8158_set_continuous_move – Enable continuous motion for

absolute motion

_8158_check_continuous_buffer – Check if the buffer is

empty

_8158_dwell_move – Set a dwell move

@ Description

_8158_set_continuous_move:

This function is necessary before and after continuous motion
command sequences

_8158_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.

_8158_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:

_8158_set_continuous_move( 2, 1 ); // start

continuous move

_8158_start_tr_move( 2, 20000.0, 10.0, 10000.0,

0.1, 0.1);

_8158_dwell_move( 2, 2000); //dwell move for 2

sec.

_8158_start_sr_move( 2, 20000.0, 10.0, 10000.0,

0.1, 0.1, 0, 0 );

_8158_set_continuous_move( 2, 0 ); //end

continuous move

Advertising