Features
Get the count value of the corresponding encoder channel.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
channel |
int |
1 |
Encoder channel (1, 2) 1: Channel 1 2: Channel 2 |
Return
|
Value |
Description |
|---|---|
|
count |
Current encoder count value of corresponding channel |
Exception
|
Exception |
Description |
|---|---|
|
N/A |
Not Used |
Example
Python
enc_cnt = get_extenc_count(1)
# External Encoder channel 1 current count value calculation
Related commands
- set_extenc_polarity(channel, polarity_A, polarity_B, polarity_Z, polarity_S)
- set_extenc_mode(channel, mode_AB, pulse_AZ, mode_Z, mode_S, inverse_cnt)
- clear_extenc_count(channel)