Skip to content

Commit ad13940

Browse files
authored
Update README.md
1 parent 4ddc9d5 commit ad13940

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# Arduino-Modbus-RTU---Modbus-TCP-UDP-Gateway
22
Transparent gateway Modbus RTU <---> Modbus TCP / Modbus UDP for Arduino
3+
4+
## Hardware
5+
* Arduino (Nano, Uno, possibly other)
6+
* W5500 Ethernet shield
7+
* MAX485 (or other RS485 TTL module)
8+
9+
## Features
10+
* slaves are on the Modbus RTU side, masters are on the Modbus TCP or Modbus UDP side
11+
* supports up to 247 Modbus RTU slaves
12+
* supports Modbus UDP masters and up to 8 Modbus TCP masters connected at the same time
13+
* supports broadcast (slave address 0x00)
14+
* supports error codes (forwards error codes from slaves, sends its own error codes)
15+
* supports all Modbus function codes (incl. proprietary)
16+
* optimized queue for Modbus requests
17+
* queue will accept only one requests to a slave which is not responding
18+
* requests to responding slaves are processed first
19+
20+
## Connections
21+
Arduino <-> MAX485
22+
Tx1 <-> DI
23+
Rx0 <-> RO
24+
Pin 6 <-> DE,RE
25+
26+
## Settings
27+
* RS485 settings
28+
* BAUD
29+
* SERIAL_CONFIG (sets data, parity, and stop bits)
30+
* SERIAL_TIMEOUT (timeout for Modbus RTU request)
31+
* MAX_RETRY (maximum number of retries)
32+
* TCP and UDP settings
33+
* MAC, IP, GATEWAY, SUBNET
34+
* TCP_PORT (local Modbus TCP port)
35+
* ETH_MAX_RETRY (maximum number of retries for sending UDP packet / TCP response)
36+
* UDP_PORT (OPTIONAL: local Modbus UDP port, defaults to Modbus TCP port)
37+

0 commit comments

Comments
 (0)