3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

get_function_input()

정의

get_function_input(index)

기능

컨트롤러의 디지털 입력 점접에서 신호를 불러오기 위한 명령문으로 디지털 입력 점접 값을 읽습니다.

Process Button 장치의 Function 버튼 상태를 읽기 위한 명령문입니다.

인수

인수명

자료형

기본값

설명

index

int

-

Process Button 장치의 Function 버튼 번호이며, 1 ~ 4까지 가능함.

리턴

설명

1

ON

0

OFF

음수값

실패

예외

예외

설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

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

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

Python
in1 = get_function_input(1)      #1번 Function 버튼 상태 읽기
in8 = get_function_input(4)      #4번 Function 버튼 상태 읽기

Keyword

get_ / function_input