📄 errors.htm
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title>Error Codes</title>
</head>
<body bgcolor="#FFFFFF">
<p align="center"><strong>Modbus classes Error contants </strong></p>
<p> </p>
<p>CModbus::ERR_OK = 0</p>
<p>No Error.</p>
<p>CModbus::ERR_TIMEOUT=1</p>
<p>Time-out error when executing communication with a slave.</p>
<p>CModbus::ERR_INV_RESP=2</p>
<p>The slave returned an invalid response. </p>
<p>CModbus::ERR_CRC= 3</p>
<p>Failed to check CRC of slave response.</p>
<p>CModbus::ERR_WR_PORT= 8</p>
<p>Error when writing to a com port.</p>
<p>CModbus::ERR_RD_PORT= 9</p>
<p>Error when reading from a com port.</p>
<p>CModbus::ERR_NOT_INT=10</p>
<p>The com port was not initialized.</p>
<p>CModbus::ERR_EXCPTION_CODE=0x8000</p>
<p>Errors 0x8000<strong> to </strong>0x80FF<strong> </strong>mean
that the slave return an Exception code where</p>
<table border="0">
<tr>
<td>0x800<strong>1</strong></td>
<td>Slave returned exception code 1 </td>
</tr>
<tr>
<td>0x800<strong>2</strong></td>
<td>Slave returned exception code 2</td>
</tr>
<tr>
<td>0x800<strong>3</strong></td>
<td>Slave returned exception code 3</td>
</tr>
<tr>
<td align="center"><strong>...</strong></td>
<td align="center"><strong>...</strong></td>
</tr>
</table>
<p> </p>
<p>CRemoteModbus::ERR_BUFFER_OVERFLOW=1000</p>
<p>Message do not fit inside class buffer.</p>
<p>CRemoteModbus::ERR_SOCKET_ERROR=1001</p>
<p>Generic socket error.</p>
<p>CRemoteModbus::ERR_WR_SOCK_ERROR=1002</p>
<p>Error while sending a message.</p>
<p>CRemoteModbus::ERR_RD_SOCK_ERROR=1003</p>
<p>Error while receiving a message.</p>
<p>CRemoteModbus::ERR_SOCK_NOT_CONNECTED=1004</p>
<p>trying to use an unconnected socket.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -