ADLINK PCI-8134A User Manual

Page 119

Advertising
background image

Additional Function Library

109

@ Description

_8134_set_pls_outmode:

Configure the output modes of command pulse. There are two
modes for command pulse output.

_8134_set_pls_iptmode:

Configure the input modes of external feedback pulse. There are
four types for feedback pulse input. Note that this function makes
sense only when using external feedback counter source.

_8134_set_feedback_src:

If external encoder feedback is available in the system, set the src
parameter in this function to Enabled state. Then internal 28-bit
up/down counter will count according configuration of
_8134_set_pls_iptmode() function. Or the counter will count the
command pulse output.

@ Syntax

C/C++ (DOS, Windows)

I16 _8134_set_pls_outmode(I16 axis, I16 pls_outmode)
I16 _8134_set_pls_iptmode(I16 axis, I16 pls_iptmode)
I16 _8134_set_cnt_src(I16 axis, I16 src)

Visual Basic (Windows)

B_8134_set_pls_outmode (ByVal axis As Long, ByVal

pls_outmode As Long) As Integer

B_8134_set_pls_iptmode (ByVal axis As Long, ByVal pls_iptmode

As Long) As Integer

B_8134_set_feedback_src (ByVal axis As Long, ByVal src As Long)

As Integer

@ Argument

axis:axis number designated to configure pulse

Input/Output.

pls_outmode: setting of command pulse output mode

for OUT and DIR pins.

pls_outmode=0, OUT/DIR type pulse output.
pls_outmode=1, CW/CCW type pulse output.

pls_iptmode: setting of encoder feedback pulse

input mode for EA and EB pins.

pls_iptmode=0, 1X AB phase type pulse input.
pls_iptmode=1, 2X AB phase type pulse input.
pls_iptmode=2, 4X AB phase type pulse input.

pls_iptmode=3, CW/CCW type pulse input.

src: Feedback Counter source

cnt_src=0, counter source from command pulse
cnt_src=1, counter source from external input

EA, EB

@ Return Code

ERR_NoError

Advertising