3.2.4 wait문

설명

지정한 조건이 참이 될 때까지 대기한 후 다음 명령문으로 진행합니다.

문법

wait <조건>[,<제한시간>,<timeout 주소>]

파라미터

항목
의미
기타

조건

대기할 조건

조건식

제한시간

조건이 거짓일 경우 대기할 최대 제한 시간 (timeout)

산술식

0.1~60.0 sec

timeout 주소

제한시간 초과 시, 분기할 주소

주소

사용 예

wait sensor_ok
wait (sensor_ok and pos_ok),10,*timeout

Last updated

Was this helpful?