Flange I/O

The flange has 2DI/2DO. For details on the interface correspondence, please refer to the User Manual.

set_flange_do auto_sync

Set digital output (flange).

set_flange_dio(pin, value)
  • Parameters
    • pin: Port, starting from 0.
    • value: Value to be set, 0 for off / 1 for on.

Compatibility Note

In version 2.2 and earlier, the command was written as:

set_tcp_dio(pin, value)

get_flange_di

Get digital input (flange).

get_flange_di(pin)
  • Parameters
    • pin: Port, starting from 0.

Compatibility Note

In version 2.2 and earlier, the command was written as:

get_tcp_dio(pin)

wait_flange_di auto_sync

Wait for digital input (flange).

wait_flange_di(pin, value, relation)

Blocking wait for the input value of the specified port to meet the specified condition, polling every 10ms.

Compatibility Note

In version 2.2 and earlier, the command was written as:

wait_tcp_dio(pin, value, relation)