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)

Features

Teach Pendant > Workcell Manager: Get the activated Tool Analog Input item's Voltage data (or Current data).

Parameters

Parameter Name

Data Type

Default Value

Description

ch

integer

-

The channel number of Tool Analog Input

  • RangeM/H Series: 1-4 (X1, X2)A/E Series: 1-2 (X1)

Return

Value

Description

(Current mode) 4.0 ~ 20.0 mA

(Voltage mode) 0.0 ~ 10.0 V

Success

Negative value

Error

Exception

Exception

Description

DR_Error (DR_ERROR_TYPE)

Parameter data type error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

DR_Error (DR_ERROR_STOP)

Program terminated forcefully

Example

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))