3 encoder & counter, Encoder & counter – ADLINK PCI-8124-C User Manual

Page 73

Advertising
background image

Function Library

63

6.3

Encoder & Counter

@ Name

@ Description

_8124_set_encoder_input_mode:

There are 5 types of pulse input mode(EA/EB) including OUT/
DIR, CW/CCW, 1x , 2x, and 4x AB phase. Choose a correct
encoder input mode before using counter.

_8124_set_encoder_value:

This function is used to set the encoder( counter ) value
directly.

_8124_get_encoder_value:

This function is used to read the current encoder value.

_8124_set_encoder_up_down_count:

This function is used to set the specified encoder to count up or
count down.

_8124_set_ez_clear:

This function is used to enable the function of counter clear by
sensing EZ input signal. If enabled, you should choose falling
edge or rising edge to clear counter. On the contrary, if dis-
abled, the setting of “ClrLogic” will be ignored.

_8124_set_encoder_input_mode

Set the pulse input decoded mode

_8124_set_encoder_value

Set the encoder’s(counter’s) value

_8124_get_encoder_value

Get the encoder’s(counter’s) value

_8124_set_encoder_up_down_count Set count up or count down for counter

_8124_set_ez_clear

Configure the EZ clear operation

_8124_set_counter_source

Set the source of counter

Advertising