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

wait_tool_analog_input()

Definition

wait_tool_analog_input(ch, condition, val, timeout=None)

Features

This function sends a signal at the digital contact point of the controller. A value saved in the digital output register is output as a digital signal.

Caution

This command is only available for new flanges.

Parameters

Parameter Name

Data Type

Default Value

Description

ch

int

-

1 : channel 1

2 : channel 2

3 : channel 3 (M/H series)

4 : channel 4 (M/H series)

condition

int

None

Analog value comparison condition

  • DR_ANALOG_CONDITION_UPPER: 0

    • Wait until the received analog input is greater than or equal to the val parameter.

  • DR_ANALOG_CONDITION_LOWER : 1

    • Wait until the received analog input is less than or equal to the val parameter

val

float

-

  • current mode : 4.00 ~ 20.00(mA)

  • voltage mode : 0.00 ~ 10.00(V)

timeout

float

None

waiting time [sec]

If not set, wait indefinitely

Return

Value

Description

0

Success

-1

Failed (time-out)

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
wait_tool_analog_input(1, DR_ANALOG_CONDITION_UPPER, 5.0, 4) ## Wait until analog data received through ch 1 is equal to or greater than 5.0

Keyword

wait / wait_ / wait_tool_ / wait_tool_analog