8144_enable_get_command – ADLINK PCI-8144 User Manual

Page 114

Advertising
background image

104

Function Library

_8144_enable_get_command

Description:

This function is used to enable “get_command()” function. If
users enable “get_command” function, users can use
_8144_get_command

() function to get current command posi-

tion.

When the axis is in motion, you can not issue this function.
When “get command” is enabled, the command position
will be reset to zero and you can not change speed of axes
on the fly
.

Syntax:

I16 _8144_enable_get_command( I16 AxisNo, I16

Enable );

B_8144_enable_get_command( ByVal AxisNo As

Integer, ByVal Enable As Integer ) As

Integer

Parameters:

I16 AxisNo

: Axis number of Target Axis.

I16 Enable

:

0: Disable get command position function.

1: Enable get command position function.

Return Values:

I16 Error code. Refer to error code table.

Example:

I16 ret;

ret = _8144_enable_get_command( AxisNo, 1 ); //

Enable get command function.

See also:

_8144_get_command

_8144_set_command

Advertising