commands:reference:igetcount
문서의 이전 판입니다!
목차
IgetCount()
명령어
| 명령어 | 인수 | 반환값 | 동작 |
|---|---|---|---|
IgetCount(counter_id) | uint8_t counter_id — 카운터 번호. uint8_t 범위이므로 0 ~ 255 사용 가능 | int32_t | 지정한 카운터의 현재값을 반환합니다. |
예제
bool Ictu(uint8_t counter_id, bool CU, bool RESET, int32_t PV); bool Ictd(uint8_t counter_id, bool CD, bool LOAD, int32_t PV); bool Ictud(uint8_t counter_id, bool CU, bool CD, bool RESET, bool LOAD, int32_t PV); int32_t IgetCount(uint8_t counter_id); void IsetCount(uint8_t counter_id, int32_t value); bool IctudDownState(uint8_t counter_id);
주의사항
IN, OUT, CU, CD는 상승 순간에 동작합니다. 각 카운터·버퍼에 고유한 id를 사용하고 size는 필요한 범위로 작게 설정하십시오.
commands/reference/igetcount.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
