Flange I/O
The flange has 2DI/2DO. For details on the interface correspondence, please refer to the User Manual.
auto_sync
set_flange_doSet 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)
auto_sync
wait_flange_diWait 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.
- Parameters
pin
: Port, starting from 0.value
: Value to be compared.relation
: Relational judgment operator.
Compatibility Note
In version 2.2 and earlier, the command was written as:
wait_tcp_dio(pin, value, relation)