get_extenc_count(channel)
기능
해당 엔코더 채널의 현재 카운트 값을 구한다
인수
인수명 | 자료형 | 기본값 | 설명 |
---|---|---|---|
channel | int | 1 | 엔코더 채널(1, 2) 1: 채널 1 2: 채널 2 |
리턴
값 | 설명 |
---|---|
count | 해당 채널의 Encoder Count 현재 값 |
예외
예외 | 설명 |
---|---|
N/A | 사용안함 |
예제
enc_cnt = get_extenc_count(1)
# External Encoder channel 1의 현재 count 값을 구함
관련 명령어
- 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)