Features
This function reads the data from a flange serial port.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
timeout |
float int |
None |
Read waiting time |
|
port |
int |
1 |
Port number to read X1 Port: 1 X2 Port: 2 (Not available for A Series) |
Return
|
Value |
Description |
|---|---|
|
res |
Number of bytes of the received data -1 : time out -2 : overflow |
|
rx_data |
Number of bytes read (byte type) |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data type error occurred |
|
DR_Error (DR_ERROR_RUNTIME) |
C extension module error occurred |
|
DR_Error (DR_ERROR_STOP) |
Program terminated forcefully |