PYCO-ETH
AIO
-
mp_obj_t AI_readOneChannel(mp_obj_t ch)
Read from a single AI channel.
- Parameters:
ch – Channel number (0 to 7).
- Return values:
volt – Voltage in [V].
-
mp_obj_t AI_readOnDemand()
Read AI on demand.
- Return values:
value_list – List of voltages in [V] of all 8 channels.
List – Analog voltage with 8 channels.
-
mp_obj_t AI_readPort()
Read from the whole AI port.
This function is identical to
AI_readOnDemand
.- Return values:
value_list – List of voltage in [V] of all 8 channels.
-
mp_obj_t AI_sendOnDemand()
Send data of the whole AI port via TCP to PC.
- Return values:
status – WPC error code.
-
mp_obj_t AO_writeOneChannel(mp_obj_t ch, mp_obj_t value)
Write to a single AO channel.
- Parameters:
ch – Channel number (0 to 7).
value – Voltage in [V] (-10 to 10).
- Return values:
status – WPC error code.
-
mp_obj_t AO_writeAllChannels(mp_obj_t value_list)
Write to all AO channels.
- Parameters:
value_list –
List of voltages in [V] (-10 to 10) of all 8 channels.
The length should be 8.
- Return values:
status – WPC error code.
DIO
-
mp_obj_t DO_writeAllChannels(mp_obj_t value_list)
Write to the whole DO port.
- Parameters:
value_list – List of pin states (0 or 1) of all 8 channels.
- Return values:
status – WPC error code.
-
mp_obj_t DO_writeOneChannel(mp_obj_t ch, mp_obj_t value)
Write to the a single DO channel.
- Parameters:
ch – Channel number (0 to 7).
value – Pin state (0 or 1).
- Return values:
status – WPC error code.
-
mp_obj_t DI_readAllChannels()
Read from the whole DI port.
- Return values:
value_list – List of pin states (0 or 1) of all 8 channels.
-
mp_obj_t DI_readOneChannel(mp_obj_t ch)
Read from a single DI channel.
- Parameters:
ch – Channel number (0 to 7).
- Return values:
value – Pin state (0 or 1).
SYSTEM
-
mp_obj_t Sys_getDriverVersion()
Get stand-alone python version.
- Return values:
String – Version name.
-
mp_obj_t Sys_getDriverName()
Get stand-alone python driver name.
- Return values:
String – Driver name.
-
mp_obj_t Sys_getSerialNumber()
Get stand-alone python driver serial number.
- Return values:
String – Serial number.
-
mp_obj_t Sys_getIP()
Get stand-alone python driver IP.
- Return values:
value_list – A list with length of 4 representing IP address.
-
mp_obj_t Sys_getSubmask()
Get stand-alone python driver submask.
- Return values:
value_list – A list with length of 4 representing submask.
-
mp_obj_t Sys_getGateway()
Get stand-alone python driver gateway.
- Return values:
value_list – A list with length of 4 representing gateway.
-
mp_obj_t Sys_getMAC()
Get MAC address.
- Return values:
value_list – A list with length of 6 representing MAC address.
-
mp_obj_t Sys_reboot()
Reboot device.
- Return values:
int – WPC error code.
-
mp_obj_t Sys_startScanEngine()
Start scan engine.
- Return values:
int – WPC error code.
-
mp_obj_t Sys_stopScanEngine()
Stop scan engine.
- Return values:
int – WPC error code.