8144_get_command – ADLINK PCI-8144 User Manual

Page 115

Advertising
background image

Function Library

105

_8144_get_command

Description:

This function is used to get command position of an axis. The
command position is calculated from hardware preset counter
(Get by _8144_enable_get_command). Users must enable
this function before use it by the function:
_8144_enable_get_command”.

Syntax:

I16 _8144_get_command( I16 AxisNo, I32 *Cmd );

B_8144_get_command( ByVal AxisNo As Integer, Cmd

As Long ) As Integer

Parameters:

I16 AxisNo

: Axis number of Target Axis.

I32 *Cmd

: Retrieve command position.

Return Values:

I16 Error code. Refer to error code table.

Example:

I16 ret;

I32 cmd = 0;

ret = _8144_get_command( AxisNo, &cmd );

if( ret == ERR_NoError )

{

//…do something

}

See also:

_8144_enable_get_command

_8144_set_command

_8144_get_remaining_pulse

Advertising