Skip to content

Commit 5314393

Browse files
authored
Merge pull request #576 from hxy7yx/2.6
[2.6]modbus:support 8-byte Endianness
2 parents c1ada96 + f317d34 commit 5314393

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

en_US/configuration/south-devices/modbus-rtu/modbus-rtu.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ After clicking **Create**, you will be redirected to the **Device Configuration*
2828
| **Baud Rate** | Only for the **Serial** mode, the serial connection parameter. |
2929
| **Data Bits** | Only for the **Serial** mode, the serial connection parameter. |
3030
| **Connection Mode** | Only for the **Ethernet** mode, you can choose Neuron as the TCP client or server. |
31+
| **8-byte Endianness** | Byte order of tags with 64 bits, with each number representing one byte. |
3132
| **IP Address** | Only for the **Ethernet** mode, the IP address of the device when using TCP connection with Neuron as the client, or the IP address of Neuron when using TCP connection with Neuron as the server. The default value is 0.0.0.0. |
3233
| **Port** | Only for the **Ethernet** mode, the port number of the device when using TCP connection with Neuron as the client, or the port number of Neuron when using TCP connection with Neuron as the server. |
3334
| **Maximum Retry Times** | The maximum number of retries after a failed attempt to send a read command.|
@@ -108,6 +109,14 @@ Optional, byte order, applicable to data types int16/uint16/int32/uint32/float,
108109
| #BL | 3,4,1,2 | int32/uint32/float | |
109110
| #BB | 4,3,2,1 | int32/uint32/float | |
110111

112+
Byte order also applies to int64/uint64/double data types. Each digit represents one byte. See the following table for detailed information.
113+
| Symbol | Byte Order | Supported Data Types | Note |
114+
| --- | ------- | ------------------ | ----- |
115+
| #LL | 12,34,56,78 | int64/uint64/double | Default byte order if not specified |
116+
| #LB | 21,43,65,87 | int64/uint64/double | |
117+
| #BL | 78,56,34,12 | int64/uint64/double | |
118+
| #BB | 87,65,43,21 | int64/uint64/double | |
119+
111120
::: tip
112121
The byte order can be illustrated using the notation ABCD, which corresponds directly to the sequence 1234. As an example, the ABCD designation represents the standard or default Endianness 1234. (#LL).
113122
:::

en_US/configuration/south-devices/modbus-tcp/modbus-tcp.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ After clicking **Create**, you will be redirected to the **Device Configuration*
2424
| -------------------- | ------------------------------------------------------- |
2525
| **Transport Mode** | TCP transfer or UDP transfer |
2626
| **Connection Mode** | Only for **TCP** mode, When selecting TCP, you can choose Neuron as the TCP client or server. |
27+
| **8-byte Endianness** | Byte order of tags with 64 bits, with each number representing one byte. |
2728
| **Maximum Retry Times** | The maximum number of retries after a failed attempt to send a read command. |
2829
| **Retry Interval** | Resend reading instruction interval(ms) after a failed attempt to send a read command. |
2930
| **Send Interval** | The waiting time between sending each read/write command. Some serial devices may discard certain commands if they receive consecutive commands in a short period of time. |
@@ -114,6 +115,14 @@ Optional, byte order, applicable to data types int16/uint16/int32/uint32/float,
114115
| #BL | 3,4,1,2 | int32/uint32/float | |
115116
| #BB | 4,3,2,1 | int32/uint32/float | |
116117

118+
Byte order also applies to int64/uint64/double data types. Each digit represents one byte. See the following table for detailed information.
119+
| Symbol | Byte Order | Supported Data Types | Note |
120+
| --- | ------- | ------------------ | ----- |
121+
| #LL | 12,34,56,78 | int64/uint64/double | Default byte order if not specified |
122+
| #LB | 21,43,65,87 | int64/uint64/double | |
123+
| #BL | 78,56,34,12 | int64/uint64/double | |
124+
| #BB | 87,65,43,21 | int64/uint64/double | |
125+
117126
::: tip
118127
The byte order can be illustrated using the notation ABCD, which corresponds directly to the sequence 1234. As an example, the ABCD designation represents the standard or default Endianness 1234. (#LL).
119128
:::

zh_CN/configuration/south-devices/modbus-rtu/modbus-rtu.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Modbus RTU 协议采用二进制编码,可以在 RS-232、RS-485 或其他串
2525
| **波特率** | 串口模式下,串口连接参数。 |
2626
| **数据位** | 串口模式下,串口连接参数。 |
2727
| **连接模式** | Ethernet 模式下,可以选择 Neuron 作为 TCP 的客户端或是服务端。 |
28+
| **8 字节字节序** | 64 位数据类型字节序,每个数字代表一字节。 |
2829
| **IP 地址** | Ethernet 模式下,设备的 IP 地址(Neuron 作为客户端);或是 Neuron 本机的 IP 地址(Neuron 作为服务端),默认可填 0.0.0.0。 |
2930
| **端口** | Ethernet 模式下,设备的端口号(Neuron 作为客户端);或是 Neuron 本机的端口(Neuron 作为服务端)。 |
3031
| **最大重试次数** | 发送读取指令失败后最大重试次数。|
@@ -98,6 +99,14 @@ Modbus RTU 协议采用二进制编码,可以在 RS-232、RS-485 或其他串
9899
| #BL | 3,4,1,2 | int32/uint32/float | |
99100
| #BB | 4,3,2,1 | int32/uint32/float | |
100101

102+
字节顺序同样适用于 int64/uint64/double 数据类型,每个数字代表一字节,详细说明见下表。
103+
| 符号 | 字节顺序 | 支持的数据类型 | 备注 |
104+
| --- | ------- | ------------------ | ----- |
105+
| #LL | 12,34,56,78 | int64/uint64/double | 不填,默认字节顺序 |
106+
| #LB | 21,43,65,87 | int64/uint64/double | |
107+
| #BL | 78,56,34,12 | int64/uint64/double | |
108+
| #BB | 87,65,43,21 | int64/uint64/double | |
109+
101110
::: tip
102111
字节顺序可能用 ABCD 表示,只需将 1234 对应 ABCD 即可。例如 ABCD 对应默认字节序 1234 (#LL)。
103112
:::

zh_CN/configuration/south-devices/modbus-tcp/modbus-tcp.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Neuron 的 Modbus TCP 插件除了支持以 TCP 客户端的模式主动接入
1919

2020
| <div style="width:100pt">字段</div> | 说明 |
2121
| -------------------- | ------------------------------------------------------- |
22+
| **8 字节字节序** | 64 位数据类型字节序,每个数字代表一字节。 |
2223
| **传输模式** | TCP 传输或 UDP 传输。 |
2324
| **连接模式** | 选择以太网 TCP 连接时,可以选择 Neuron 作为 TCP 的客户端或是服务端。|
2425
| **最大重试次数** | 发送读取指令失败后最大重试次数。 |
@@ -107,6 +108,14 @@ Neuron 的 Modbus TCP 插件除了支持以 TCP 客户端的模式主动接入
107108
| #BL | 3,4,1,2 | int32/uint32/float | |
108109
| #BB | 4,3,2,1 | int32/uint32/float | |
109110

111+
字节顺序同样适用于 int64/uint64/double 数据类型,每个数字代表一字节,详细说明见下表。
112+
| 符号 | 字节顺序 | 支持的数据类型 | 备注 |
113+
| --- | ------- | ------------------ | ----- |
114+
| #LL | 12,34,56,78 | int64/uint64/double | 不填,默认字节顺序 |
115+
| #LB | 21,43,65,87 | int64/uint64/double | |
116+
| #BL | 78,56,34,12 | int64/uint64/double | |
117+
| #BB | 87,65,43,21 | int64/uint64/double | |
118+
110119
::: tip
111120
字节顺序可能用 ABCD 表示,只需将 1234 对应 ABCD 即可。例如 ABCD 对应默认字节序 1234 (#LL)。
112121
:::

0 commit comments

Comments
 (0)