commands:reference:ictd
문서의 이전 판입니다!
Ictd()
Ictd()는 설정값을 불러온 후 입력 상승마다 현재값을 감소시킵니다.
bool Ictd(uint8_t counter_id, bool CD, bool LOAD, int32_t PV)
명령어
| 명령어 | 인수 | 반환값 | 동작 |
|---|---|---|---|
Ictd(counter_id, CD, LOAD, PV) | uint8_t counter_id — 카운터 번호. uint8_t 범위이므로 0 ~ 255 사용 가능bool CDbool LOADint32_t PV — 설정값 | bool | 설정값을 불러온 후 입력 상승마다 현재값을 감소시킵니다. |
예제
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/ictd.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
