
Function Library
47
5.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
Содержание PCI-8124
Страница 5: ......
Страница 17: ...8 Introduction ...
Страница 30: ...Signal Connections 21 Outside PCI 8124 inside PCI 8124 TRGx 220Ω ...
Страница 33: ...24 Signal Connections ...
Страница 35: ...26 Operation Theory 4 1 Trigger Board Overview The input and output relationships are shown as follows ...
Страница 49: ...40 Operation Theory ...
Страница 61: ...52 Function Library I16 ToggleDir Toggled condition select X 0 Directionless X 1 Count up X 2 Count down ...
Страница 72: ...Function Library 63 I16 Enable Enable Disable linear set X 0 disable 1 enable ...
Страница 83: ...74 Function Library ...