ADLINK PCI-8124-C User Manual

Page 75

Advertising
background image

Function Library

65

B_8124_set_counter_source (ByVal CardId As

Integer, ByVal Channel As Integer, ByVal

CtnSrc As Integer) As Integer

@ Argument

I16 CardId

: The PCI-8124-C card’s ID number.

I16 Channel

: The specified channel number. (0 – 3)

I16 IptMode

: The pulse input mode.

0: OUT/DIR (default)

1: CW/CCW

2: 1x AB-Phase

3: 2x AB-Phase

4: 4x AB-Phase

I32 EncValue

: The encoder (counter) value.

I16 Inverse

: Encoder count direction inverse or not

0: Not inverse (default)

1: Inverse

I16 Enable

: Enable EZ-clear function

0: Disable (default)

1: Enable

I16 ClrLogic

: Clear logic setting

0: Photo couple: OFF

ON (Falling edge) clear (default)

1: Photo couple: ON

OFF (Rising edge) clear

I16 CtnSrc

: The counter’s source (0 – 7)

0 – 3: EA/EB 0 – 3

4 – 7: Timer 0 – 3

Advertising