ADLINK PCI-8158 User Manual
Page 191

Function Library
181
_8158_get_res_distance:
This function is used to read the value of the residue distance
recorder. The target position recorder is maintained by the
8158 software driver. It records the position to settle down for
current running motion.
_8158_set_res_distance:
This function is used to change the value of the residue dis-
tance counter
@ Syntax
C/C++(Windows 2000/XP)
I16 _8158_get_position(I16 AxisNo, F64 *Pos);
I16 _8158_set_position(I16 AxisNo, F64 Pos);
I16 _8158_get_command(I16 AxisNo, I32 *Command);
I16 _8158_set_command(I16 AxisNo, I32 Command);
I16 _8158_get_error_counter(I16 AxisNo, I16
*error);
I16 _8158_reset_error_counter(I16 AxisNo);
I16 _8158_get_general_counter(I16 AxisNo, F64
*CntValue);
I16 _8158_set_general_counter(I16 AxisNo, I16
CntSrc, F64 CntValue);
I16 _8158_get_target_pos(I16 AxisNo, F64 *T_pos);
I16 _8158_reset_target_pos(I16 AxisNo, F64
T_pos);
I16 _8158_get_res_distance(I16 AxisNo, F64
*Res_Distance);
I16 _8158_set_res_distance(I16 AxisNo, F64
Res_Distance);
Visual Basic (Windows 2000/XP)
B_8158_get_position(ByVal AxisNo As Integer, Pos
As Double) As Integer
B_8158_set_position(ByVal AxisNo As Integer,
ByVal Pos As Double) As Integer
B_8158_get_command(ByVal AxisNo As Integer, Cmd
As Long) As Integer
B_8158_set_command(ByVal AxisNo As Integer, ByVal
Cmd As Long) As Integer