Table of Contents
Introducción
La conversión de puerta de enlace Modbus RTU a TCP es esencial para integrar dispositivos seriales industriales heredados en sistemas SCADA y redes PLC modernos basados en Ethernet. Este tutorial proporciona una guía paso a paso completa.
Whether you're connecting a Modbus RTU temperature Senso, Alimentación meter, o variable frequency drive (VFD) a an Ethernet Red, this Guía covers the complete configuration process de Hardware wiring a software setup.
What is a Modbus RTU to TCP Puerta de enlace?
A Modbus RTU to TCP gateway (also known as Modbus protocol converter or RS485 to Ethernet converter) is a networking device that acts as a bridge between traditional serial communication (RS485/RS232) and modern Ethernet networks using the Modbus TCP/IP protocol.
Key Benefits of Modbus Gateway Conversion:
- Integrate legacy RS485 Dispositivos ina modern Ethernet infrastructure
- Habilitar remote monitoring and control via standard TCP/IP networks
- Reduce wiring costs by utilizing existing Red infrastructure
- Soporte longer communication distances via Ethernet
- Habilitar integration with cloud platforms and IoT applications
Requisitos Previos
Antes starting the configuration, ensure you have the following:
- Modbus RTU to TCP Gateway Device - ModulesLink ML-MOD-PROTO or equivalent
- RS485 Device - Modbus RTU slave device (sensor, meter, PLC, VFD)
- Ethernet Cable - CAT5e or higher for network connection
- RS485 Cable - Twisted pair cable with proper shielding
- PC with Web Browser - For gateway configuration via web interface
- Modbus Poll Software - For testing communication
- Network Information - Available IP address, subnet mask, gateway
Hardware Conectarion
Proper wiring is critical para reliable Modbus RTU Comunicación. Follow these connection Guíalines:
RS485 Wiring (Puerta de enlace to Serie Dispositivo)
| Gateway Terminal | Signal | RS485 Device | Notes |
|---|---|---|---|
| A / DATA+ | Non-inverting | D+ / A | Connect positive data line |
| B / DATA- | Inverting | D- / B | Connect negative data line |
| GND | Ground | GND | Optional, improves noise immunity |
Important Wiring Tips:
- Use twisted pair cables para RS485 data lines
- Maintain polarity consistency - A connects a A, B connects a B
- Use termination resisas (120Ω) at both ends of the bus para long distances
- Keep RS485 cables away de high-voltage Alimentación lines
- Longitud máxima del bus: 1200 metros
IP Configuración
The Pasarela must have a valid IP address on Su Ethernet Red. Follow these steps a configure the IP settings:
Step 1: Access the Web Interfaz
- Conectar the gateway to your network via Ethernet
- Potencia on the gateway and wait for startup (approximately 30 seconds)
- Open a web browser and enter the default IP address (typically
192.168.1.100) - Log in con default credentials (admin/admin o admin/123456)
Step 2: Configure Red Ajustes
Recommended Network Settings:
| Parameter | Recommended Value | Example |
|---|---|---|
| IP Address | Static IP in your subnet | 192.168.1.100 |
| Subnet Mask | Standard for LAN | 255.255.255.0 |
| Default Gateway | Your router IP | 192.168.1.1 |
| DNS Server | ISP or local DNS | 8.8.8.8 |
| Port | Modbus TCP default | 502 |
Step 3: Guardar and Aplicaciónly Ajustes
After entering the network configuration, click Apply or Save. The gateway may restart to apply the new settings. Wait for the device to fully reboot before proceeding.
Serie Puerto Ajustes
Configure the serial port parameters to match your Modbus RTU device settings. Access the Serie Ajustes section in the gateway web interface.
Modbus RTU Serial Configuration Parameters:
| Parameter | Common Settings | Notes |
|---|---|---|
| Baud Rate | 9600, 19200, 38400, 115200 | Must match slave device |
| Data Bits | 8 | Standard Modbus setting |
| Parity | None, Even, Odd | Usually Even for Modbus |
| Stop Bits | 1 | Standard single stop bit |
| Flow Control | None / RTS/CTS | None for most RS485 setups |
| Slave ID | 1-247 | Must match device address |
Datos Mapping Configuración
Datos mapping allows you to define how Modbus RTU register data is converted to Modbus TCP memory locations. This enables seamless data exchange between the serial and Ethernet sides.
Common Datos Mapping Configuracións:
Example: Mapping RTU Register to TCP Memory
| RTU Slave | RTU Function | RTU Address | → | TCP Address | Data Type |
|---|---|---|---|---|---|
| 1 | 03 Read | 0-10 | → | 0-10 | Holding Registers |
| 1 | 04 Read | 0-10 | → | 1000-1010 | Input Registers |
| 2 | 01 Read | 0-10 | → | 2000-2010 | Coil Status |
Prueba Comunicación
Después configuration, verify that data is being transmitted correctly using Modbus Poll software:
Modbus Poll Configuración:
- Open Modbus Poll and click Connection → Connect
- Select Modbus TCP/IP as the protocol
- Entrar the gateway IP address and port (default 502)
- Set the Slave ID a match Su RTU Dispositivo
- Configure the function code y register address a Leer
- Click OK to start polling
Troubleshooting Common Problemas
Use this troubleshooting checklist when encountering Comunicación problems:
-
No Communication - No Response
→ Check Ethernet cable connection y LED indicaas
→ Verify IP address is on the same subnet as Su PC
→ Confirmar port 502 is not blocked by firewall
→ Solution: Ping gateway IP address to verify network connectivity -
RTU Timeout Errors
→ Verificar polaridad del cableado RS485 (conexiones A/B)
→ Check that baud rate y parity match the slave Dispositivo
→ Confirmar slave ID is correct
→ Solution: Use a serial terminal to test RTU device directly -
Invalid Data Values
→ Verify data type mapping (16-bit vs 32-bit register Pedido)
→ Check byte order (Big Finian vs Poco Finian)
→ Confirmar scaling parameters if applicable
→ Solution: Compare raw hex values with expected values -
Intermittent Communication
→ Agregar termination resistors at bus ends
→ Verificar daños en cables o conexiones deficientes
→ Verify cable distance is conin Especificación
→ Solution: Reduce baud rate for long cable runs
Frequently Asked Preguntas
Q: What is Modbus RTU to TCP gateway?
A: A Modbus RTU a TCP Pasarela is a Proacolo Convertido that transparams Modbus RTU Serie Comunicación (RS485/RS232) ina Modbus TCP/IP Ethernet Comunicación, enabling legacy Serie Dispositivos a connect a modern Ethernet-based Industrial Reds.
Q: How do I configure Modbus RTU to TCP gateway IP address?
A: Access the Pasarela web Interfaz o configuration software, navigate a Netwok Settings, y assign a static IP address conin Su Red subnet. Ensure the IP is unique y not conflicting con other Dispositivos.
Q: What are typical Modbus RTU serial settings?
A: Typical Modbus RTU Serie settings include: 9600 o 19200 baud rate, 8 data bits, even parity (o none), 1 sap bit (8N1 o 8E1). The Dispositivo address (slave ID) must match the oiginal Dispositivo settings, typicTodosy range 1-247.
Q: How to troubleshoot Modbus RTU to TCP communication issues?
A: Start by verifying physical connections (RS485 wiring polarity), check LED indicaas para activity, confirm IP configuration matches Red, validate Serie settings, test con Modbus poll software, y check firewTodos settings para pot 502.