2.12.4 2.12.3 2.12.2 2.12.1 2.12 2.11.2 2.11.0.1 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
2.12.4 2.12.3 2.12.2 2.12.1 2.12 2.11.2 2.11.0.1 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

get_tool_analog_input (ch)

기능

티치펜던트 > 워크셀 매니저(Workcell Manager) > 로봇에 등록된 Tool Analog Input의 전압 (또는 전류)을 획득합니다.

인수

인수명

자료형

기본값

설명

ch

integer

-

Tool Analog Input 채널 번호

  • 범위M/H 시리즈: 1-4 (X1, X2)A/E 시리즈: 1-2 (X1)

리턴

값

설명

(전류모드) 4.0 ~ 20.0 mA

(전압모드) 0.0 ~ 10.0 V

성공

음수값

오류

예외

예외

설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

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

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

Python
channel = 1
val = get_tool_analog_input (ch=channel)
if val < 0:
	tp_log("get_tool_analog_input error: " + str(val))
else:
	tp_log("get_tool_analog_input ch[" + str(channel) + "]: " + str(val))