Syntax – ADLINK PCI-8154 User Manual

Page 199

Advertising
background image

Function Library

189

_8154_get_res_distance

:

This function is used to read the value of the residue distance
recorder. The target position recorder is maintained by the
8154 software driver. It records the position to settle down for
current running motion.

_8154_set_res_distance

:

This function is used to change the value of the residue dis-
tance counter

@ Syntax

C/C++(Windows 2000/XP)

I16 _8154_get_position(I16 AxisNo, F64 *Pos);

I16 _8154_set_position(I16 AxisNo, F64 Pos);

I16 _8154_get_command(I16 AxisNo, I32 *Command);

I16 _8154_set_command(I16 AxisNo, I32 Command);

I16 _8154_get_error_counter(I16 AxisNo, I16

*error);

I16 _8154_reset_error_counter(I16 AxisNo);

I16 _8154_get_general_counter(I16 AxisNo, F64

*CntValue);

I16 _8154_set_general_counter(I16 AxisNo, I16

CntSrc, F64 CntValue);

I16 _8154_get_target_pos(I16 AxisNo, F64 *T_pos);

I16 _8154_reset_target_pos(I16 AxisNo, F64

T_pos);

I16 _8154_get_res_distance(I16 AxisNo, F64

*Res_Distance);

I16 _8154_set_res_distance(I16 AxisNo, F64

Res_Distance);

Visual Basic (Windows 2000/XP)

B_8154_get_position(ByVal AxisNo As Integer, Pos

As Double) As Integer

B_8154_set_position(ByVal AxisNo As Integer,

ByVal Pos As Double) As Integer

B_8154_get_command(ByVal AxisNo As Integer, Cmd

As Long) As Integer

B_8154_set_command(ByVal AxisNo As Integer, ByVal

Cmd As Long) As Integer

Advertising