2.3.3
Extended I/OThe extension board comes with 12DI/12DO/2AI/2AO. For detailed interface correspondence, please refer to the User Manual.
auto_sync
set_extra_doSet digital output (extension board).
set_extra_do(pin, value)
- Parameters
pin
: Port, starting from 0.value
: Value to be set, 0 for off / 1 for on.
Example Program
set_extra_do(1, 1)
get_extra_di
Get digital input (extension board).
get_extra_di(pin)
- Parameters
pin
: Port, starting from 0.
Example Program
get_extra_di(1)
auto_sync
wait_extra_diWait for digital input (extension board).
wait_extra_di(pin, value, relation)
- Parameters
pin
: Port, starting from 0.value
: Value to be set, 0 for off / 1 for on.relation
: Relational operator.
Example Program
wait_extra_di(1, 0, "=")
auto_sync
set_extra_aoSet analog output (extension board).
set_extra_ao(pin, value)
- Parameters
pin
: Port, starting from 0.value
: Value to be set, specify voltage or current value according to the output type.
Example Program
- Set EAO0 to output 3V.
set_extra_ao(0, 3)
get_extra_ai
Get analog input (extension board).
get_extra_ai(pin)
- Parameters
pin
: Port, starting from 0.
auto_sync
wait_extra_aiWait for analog input (extension board).
wait_extra_ai(pin, value, relation)
- Parameters
pin
: Port, starting from 0.value
: Value to be compared.relation
: Relational operator.