ADLINK PCI-8134A User Manual

Page 137

Advertising
background image

Additional Function Library

127

@ Description

_8134_set_position:

Changes the current actual position to the specified position.

_8134_get_position:

Reads the current actual position. Note that when feedback signals
is not available in the system, thus external encoder feedback is
Disabled in _8134_set_feedback_src() function, the value gotten
from this function is command position.

_8134_set_command:

Changes the command position to the specified command position.
The command position is the target position of this command, not
the current command position counter’s value.

_8134_get_command:

Reads the current command position.
The command position is the target position of this command, not
the current command position counter’s value.

_8134_get_error_counter:

Read the error counter value which is calculated from command and
feedback counter.

_8134_reset_error_counter:

Reset the error counter value to 0.

_8134_set_feedback_error_detect:

Set the error counter detect value. if the error counter is greater than
this value, the out-of-step interrupt will be issued.

@ Syntax

C/C++ (DOS, Windows)

I16 _8134_set_position(I16 axis, F64 pos)
I16 _8134_get_position(I16 axis, F64 *pos)

I16 _8134_set_command(I16 axis, F64 cmd)
I16 _8134_get_command(I16 axis, F64 *cmd)

I16 _8134_get_error_counter(I16 axis, I16 *error_c)
I16 _8134_reset_error_counter(I16 axis)
I16 _8134_set_error_feedback_detect(I16 axis, I32 max_error)

Visual Basic (Windows)

B_8134_get_position (ByVal axis As Integer, pos As Double) As

Integer

B_8134_set_position (ByVal axis As Integer, ByVal pos As Double)

As Integer

B_8134_get_command (ByVal axis As Integer, cmd As Double) As

Integer

B_8134_set_command (ByVal axis As Integer, ByVal cmd As

Double) As Integer

B_8134_get_error_counter(ByVal axis As Integer, error_c As

Integer) As Integer

B_8134_reset_error_counter(ByVal axis As Integer) As Integer
B _8134_set_error_feedback_detect(ByVal axis As Integer, ByVal

Advertising