사용자 도구

사이트 도구


commands:reference:ictud

문서의 이전 판입니다!


Ictud()

Ictud()는 증가 입력과 감소 입력을 하나의 카운터에서 처리합니다.

Ictud 명령어 동작 흐름

bool Ictud(uint8_t counter_id, bool CU, bool CD, bool RESET, bool LOAD, int32_t PV)

명령어

명령어 인수 반환값 동작
Ictud(counter_id, CU, CD, RESET, LOAD, PV) uint8_t counter_id — 카운터 번호. uint8_t 범위이므로 0 ~ 255 사용 가능
bool CU
bool CD
bool RESET
bool LOAD
int32_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/ictud.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki