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

Definition

get_tool_analog_input(ch)

Features

Get of activated tool analog input's value in the Teach Pendant.

Parameters

Parameter Name

Data Type

Default Value

Description

ch

integer

-

The channel number of Tool Analog Input

  • Range

    • M/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))

Keyword

get / tool / analog_input / get_ / get_tool / get_tool_analog / analog_input