Modbus TCP to RTU Tutorial for MCGS SCADA with Serial Servers: Complete Guide

The [👉 Valtoris 1CH-RS485-ETH Modbus Gateway] is a versatile RS485 data acquisition device designed for demanding industrial environments. It acts as an active protocol translator, seamlessly bridging legacy Modbus RTU serial devices to modern Ethernet/TCP networks.

If you’re working with the MCGS SCADA system and need to bring data from field Modbus RTU devices (like sensors, VFDs, or power meters) into your control room, this guide walks you through the setup step by step. We’ll cover hardware configuration via the VirCom tool, SCADA software settings, connection testing, and real‑world troubleshooting tips.

Valtoris 1CH-RS485-ETH Overview
Figure 1: Valtoris 1CH-RS485-ETH Industrial Modbus Gateway

1. What You Need to Know Before Starting

Modbus TCP to Modbus RTU Protocol Conversion

A Modbus gateway is not just a physical wire adapter; it actively translates protocols. When your MCGS SCADA sends a Modbus TCP command over Ethernet, the gateway strips the TCP headers, calculates the CRC checksum, and pushes the raw Modbus RTU frame down the RS485 bus.

For example, a Modbus TCP command 00 00 00 00 00 06 01 06 00 01 00 01 is received by the Valtoris gateway via RJ45, unpacked, and converted to the RTU format: 01 06 00 01 00 01 19 CA before being sent to the sensor.

Active Protocol Translation: Modbus TCP ↔ Modbus RTU MCGS SCADA (Ethernet) MBAP Header (TCP) 00 00 00 00 00 06 Payload (PDU) 01 06 00 01 00 01 Valtoris Gateway 1CH-RS485-ETH Translates & Adds CRC Payload (PDU) 01 06 00 01 00 01 CRC-16 19 CA Slave Device (RS485) The gateway seamlessly replaces the TCP MBAP header with the correct RS485 CRC checksum in real-time.
Figure 2: Protocol Translation Process

2. Gateway Device Setup: Using VirCom

2.1 Set the IP Address & Port

The Valtoris gateway is configured via the VirCom (Virtual Serial & Device Management) software. Ensure your configuration PC is on the same local network subnet as the gateway.

For example, if your MCGS SCADA PC is 192.168.1.222, set the gateway’s Static IP to 192.168.1.200. The default Modbus TCP port is 502. Set the Work Mode to TCP Server so it listens for the SCADA’s incoming connection requests.

VirCom Network Settings
Figure 3: VirCom Network & Protocol Configuration

2.2 Advanced Configuration: Choosing the Right Modbus Mode

A major advantage of industrial-grade gateways is their ability to handle data collisions. Inside the “More Advanced Settings” of VirCom, you can define how the gateway processes RS485 queries:

Modbus ModeHow It WorksBest Use Case
Auto Query Storage Type (Storage-based)Actively polls slaves and caches data internally. Responds to SCADA in <3ms.High-speed SCADA systems or when multiple masters query the same bus concurrently.
Non-storage Modbus GatewayDirectly translates packets sequentially. Supports Multi-Host FIFO queuing.Complex networks where you want precise control without caching legacy data.
Simple TCP to RTU ConversionBasic protocol conversion without advanced bus conflict detection.Simple point-to-point applications with a single master.

Tip: If you’re unsure which mode to pick, Auto Query Storage Type is highly recommended for SCADA integration as it prevents RS485 bus congestion.

Advanced Options in VirCom
Figure 4: Enabling Multi-Host & Modbus Gateway Types in VirCom

3. Setting up MCGS SCADA Software

3.1 Adding the Modbus TCP Device

MCGS, developed by KunLun Tongtai, allows users to rapidly build HMI interfaces. In your MCGS Device Window, you need to create a Generic TCP/IP Parent Device and add a Modbus TCP Data Forwarding node as the child device.

MCGS Device Window
Figure 5: Adding the Device in the MCGS Device Window
TCP/IP Parent Device Setup
Figure 6: TCP/IP Parent Network Parameters (IP: 192.168.1.200, Port: 502)

3.2 Mapping the Slave Device Properties

After linking the TCP parent, double-click the Modbus TCP child device to configure the Modbus RTU Address (Slave ID). Ensure this exactly matches the physical address set on your end-device (e.g., VFD or Sensor ID = 1).

MCGS Device Property Settings
Figure 7: Mapping Holding Registers to the corresponding Slave ID

4. Testing the Connection

4.1 Use a Simulator First (Highly Recommended)

Before relying on the live SCADA runtime, test the hardware using a Modbus slave simulator (like Modbus Slave or ModSim32). Connect your PC to the Valtoris gateway using a USB-to-RS485 adapter to simulate the physical RTU device. Ensure your baud rate and parity perfectly match.

Modbus Slave Connection Setup
Figure 8: Modbus Slave Connection Setup (Matching Baud Rate)
Modbus Slave Definition
Figure 9: Simulating Holding Registers Data

4.2 Verify Values in MCGS Runtime

Once the simulation proves the physical link is solid, switch to MCGS runtime. If the channel reads 0 and no exception errors pop up, communication is established. Try writing to a Holding Register (Function Code 03/06) in MCGS and verify if it updates instantly in your simulator or real device.

MCGS Variable Linking MCGS Successful Test
Figure 10: Successful Data Retrieval in MCGS SCADA Runtime

5. Advanced Troubleshooting & Best Practices

⚠️ Fixing “Packet Sticking” (Inter-frame Timing)

Modbus RTU heavily relies on silent intervals to separate frames. When TCP network traffic is fast, multiple TCP packets might be pushed out of the RS485 port too quickly, causing legacy devices to merge them (Packet Sticking). In VirCom’s advanced settings, increase the Max Interval (Frame Timeout) slightly (e.g., from 3ms to 20ms). This gives slow RTU devices time to breathe and fixes 90% of intermittent timeout issues.

🔒 Cybersecurity Note for OT Networks

Modbus TCP has no built-in encryption. A quick Shodan search reveals thousands of exposed Modbus gateways worldwide. If your gateway shares a corporate IT network, place it on a dedicated VLAN or utilize the gateway’s IP Whitelisting features to restrict SCADA-only access.

Ready to Scale Your OT Network?

Setting up a Modbus TCP gateway is straightforward once you align the IP, select the correct Storage Mode via VirCom, and map the SCADA variables. What separates a fragile setup from a bulletproof one is matching the hardware to your polling frequency and isolating physical ground loops.

Get the Valtoris 1CH-RS485-ETH Gateway