4 pulse input/output configuration, Pulse input/output configuration – ADLINK PCI-8158 User Manual

Page 137

Advertising
background image

Function Library

127

6.4 Pulse Input/Output Configuration

@ Name

_8158_set_pls_iptmode – Set the configuration for feedback

pulse input.

_8158_set_pls_outmode – Set the configuration for pulse

command output.

_8158_set_feedback_src – Enable/Disable the external feed-

back pulse input

@ Description

_8158_set_pls_iptmode:

Configure the input modes of external feedback pulses. There
are 4 types for feedback pulse input. Note that this function
makes sense only when the Src parameter in
_8158_set_feedback_src() function is enabled.

_8158_set_pls_outmode:

Configure the output modes of command pulses. There are 6
modes for command pulse output.

_8158_set_feedback_src:

If external encoder feedback is available in the system, set the
Src parameter in this function to an Enabled state. Then, the
internal 28-bit up/down counter will count according to the con-
figuration of the _8158_set_pls_iptmode() function. Else, the
counter will count the command pulse output.

@ Syntax

C/C++(Windows 2000/XP)

I16 _8158_set_pls_iptmode(I16 AxisNo, I16

pls_iptmode, I16 pls_logic);

I16 _8158_set_pls_outmode(I16 AxisNo, I16

pls_outmode);

I16 _8158_set_feedback_src(I16 AxisNo, I16 Src);

Advertising