사용자 도구

사이트 도구


commands:reference:isetcount

문서의 이전 판입니다!


IsetCount()

IsetCount()는 지정한 카운터의 현재값을 변경합니다.

IsetCount 명령어 동작 흐름

void IsetCount(uint8_t counter_id, int32_t value)

명령어

명령어 인수 반환값 동작
IsetCount(counter_id, value) uint8_t counter_id — 카운터 번호. uint8_t 범위이므로 0 ~ 255 사용 가능
int32_t value
void 지정한 카운터의 현재값을 변경합니다.

예제

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/isetcount.1788260660.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki