Skip to main content
Skip table of contents

wait()

정의

wait(time)

기능

 지정된 시간만큼 대기합니다.

인수

인수명

자료형

기본값

설명

Time

Float

-

시간 [sec]

리턴

설명

0

성공

음수값

오류

예외

예외

설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

인수의 값이 유효하지 않을 시

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

PY
wait(1.3) # 1.3초 대기

while 1: #0.1초 마다 접점 1번 상태를 체크 
if get_digital_input(1) == ON:
    set_digital_output(1, ON) 
  wait(0.1)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.