ICP DAS
LinPAC-52xx Series XV-Board API User Manual
23
3. Error Codes
The following table provides a list of error codes used by Modbus-based APIs.
Value
Return code
Description
0
NoError
OK. The function was successful.
1 FunctionError
Function
use
error.
2
PortError
Port open error.
3
BaudRateError
Set Baud Rate error.
4
DataError
Set data Bits error.
5
StopError
Set stop Bits error.
6
ParityError
Set parity Bits error.
7 CheckSumError Checksum
error.
8
ComPortNotOpen
The specified COM port is not open.
10
SendCmdError
Send command error.
11
ReadComStatusError Receive command status error.
12 ResultStrCheckError
Checksum
error.
13
CmdError
Send error command.
15 TimeOut
The command has received no
response within the predetermined time.
19 UnderInputRange
An error has occurred because the input
is below the expected range.
20 ExceedInputRange
An error has occurred because the input
has exceeds the expected range.