Troubleshooting
Why a Kepware Modbus RTU server driver receives no PLC data
Short answer
With the PLCs as Modbus RTU masters, the Modbus RTU Server Serial driver over Ethernet Encapsulation is the correct Kepware role, so keep it and repair the link: make one side open the TCP connection to the other's listening port, confirm the tunnel carries RTU frames and not converted Modbus TCP, and match the request's unit address to the server's device. OPC tags take value only when the PLCs write.

On this page
- Keep the driver: the PLCs are the masters
- First check: the TCP connection and who opens it
- Second check: RTU frames or Modbus TCP
- Third check: unit address and the register the PLC writes
- Counting one write of two registers to unit 1 on port 1123
- Change one thing and rerun the same transaction
- The decision for each case
- Questions asked
Your driver choice is correct, so leave it alone: with the PLCs initiating the Modbus RTU requests, Kepware has to be the Modbus server, and Modbus RTU Server Serial over Ethernet Encapsulation is exactly that role for serial devices reached through a terminal server. The missing data is stuck in one of three places — the direction of the TCP connection through the RS-485-to-Ethernet converter, the framing carried inside that connection, or the unit address and register the PLCs actually write. The passing slave-emulator test proves the serial segment and the uplink; it proves nothing about Kepware's endpoint. Run the checks below in order and change only the first one that fails.
Keep the driver: the PLCs are the masters #
In Modbus the master builds every request and the server only answers. Your PLCs hold the master role, so Kepware must hold the server role — and a server driver never reaches into PLC memory. Its OPC tags take a value when a PLC writes into the server's register space. If the application in the PLCs only reads from Kepware, there is no data to receive, and no setting changes that: the values must be written. If what you wanted was the SCADA side initiating every read, that is the polling design weighed in PLC data concentrator vs SCADA server for RTU polling — a different architecture from this one.
Do not load a Mitsubishi FX driver because the PLCs are FX3G models. A driver must match the bytes on the wire, and these bytes are Modbus RTU, which the Modbus suite you already have installed serves.
First check: the TCP connection and who opens it #
The Modbus role and the TCP role are independent, and here they point in opposite directions: Kepware is the Modbus server and, under Ethernet Encapsulation, the TCP client — the mode exists to reach serial devices on terminal servers, so the channel dials out to the converter's address. That fixes the converter's setting: TCP server mode, listening, on the port the channel dials. The 1123 in your project is the converter's listening port, and the channel's target must be the converter's IP address.
Rule these out in order:
- Converter in TCP client mode: it dials an endpoint that never listens for it. Set it to TCP server mode.
- Both ends waiting: nothing connects, and the silence looks exactly like a driver fault.
- UDP mode selected: set it aside — the encapsulation endpoint is a TCP endpoint, and a UDP stream never reaches it.
- The emulator still attached: close it first. A converter that accepts a single session keeps refusing Kepware while the emulator holds the connection.
Confirm an established session in the converter's connection status before reading further.
Second check: RTU frames or Modbus TCP #
An established connection says nothing about the bytes inside it, and two framings can ride the same tunnel:
- Modbus RTU over TCP carries the serial frame unchanged: unit address first, the data, then a 2-byte CRC-16, with no length field. This is the only framing the driver named Modbus RTU Server Serial parses.
- Modbus TCP, per the Messaging on TCP/IP Implementation Guide, replaces the address and CRC with a 7-byte MBAP header: transaction identifier, protocol identifier, length field, unit identifier.
The driver ignores what it cannot parse, and an invalid frame never becomes a tag value. Converters that advertise Modbus support often include an RTU-to-Modbus-TCP conversion mode; in that mode this driver starves no matter what else is right. Read the converter's operating mode and select the one that forwards serial bytes unchanged. The emulator's pass does not settle this question — its own connection setting does. If bytes arrive but decode as noise, compare the baud rate, parity, data bits and stop bits at both ends of the RS-485 segment, the rule behind why serial reads complete only when framing matches the data. To learn which framing the tunnel really carries, count the bytes of one request, as the worked example below does.
Third check: unit address and the register the PLC writes #
Decode one request off the wire and read five fields: destination unit address, function code, start address, quantity, data.
- The first byte is the request's destination, and it must equal the server's device ID, 1 in this project. A master's own station number never appears in the frame it sends, so treat the field the PLC instruction labels as its write address as the likely destination and confirm it in the decoded frame. Left at zero, the request goes to unit 0 — the failure traced in why Modbus RTU sends to slave address 0 instead of your device.
- Function code 6 or 16 is a write, and writes are the only transactions that put PLC values into Kepware. A read moves data the other way and leaves the OPC tags untouched.
- The start address and quantity must land inside the device's register space, and the OPC tag must point at the same register with a matching data type. Protocol offsets and the holding-register references PLC tools display (the 40001 style) differ by a constant base; settle the notation once against the driver's addressing help instead of shifting every tag by one.
- A write that draws a normal response while the tag stays fixed is interpretation, not transport — the symptom worked through in why a Modicon M221 bit stays fixed in Kepware over Modbus TCP.
Counting one write of two registers to unit 1 on port 1123 #
Inputs. The transaction is a typical one for this setup, used here as the example: a PLC writes 2 registers, 16 bits each, with function 16 to unit address 1, over the tunnel on port 1123. The unit address and port come from your project; the frame layouts come from the Modbus specifications — Modbus over Serial Line defines the RTU frame as a 1-byte address, the PDU (the function code and data) and a 2-byte CRC, and the TCP messaging guide defines the Modbus TCP frame as a 7-byte MBAP header followed by the PDU, with no CRC. A function 16 request PDU is function (1 byte) + start address (2 bytes) + quantity (2 bytes) + byte count (1 byte) + data (2 bytes per register).
Rule. The same write occupies a different number of bytes under each framing, because the MBAP header's 7 bytes replace the 1-byte address plus the 2-byte CRC. Count the payload bytes of one request on the tunnel and the total identifies the framing.
Arithmetic.
- Byte count field = 2 registers x 2 bytes per register = 4 bytes
- PDU = 1 + 2 + 2 + 1 + 4 = 10 bytes
- RTU frame = 1 (address) + 10 (PDU) + 2 (CRC) = 13 bytes
- Modbus TCP frame = 7 (MBAP) + 10 (PDU) = 17 bytes
- Difference = 17 - 13 = 4 bytes. Cross-checks: the TCP length field reads 1 (unit identifier) + 10 (PDU) = 11, and the reply is 8 bytes in RTU against 12 bytes in Modbus TCP.
Result. A request of 13 payload bytes is RTU framing, which the driver parses. A request of 17 bytes is Modbus TCP, which the driver discards.
Decision. At 17 bytes per request, stop: set the converter to the mode that forwards serial bytes unchanged and change nothing in Kepware. At 13 bytes with the tags still dead, framing is cleared — read the request's first byte; it must be 1, the device's ID — and continue with the register checks. Any other payload length is not this transaction: decode it before comparing.
Change one thing and rerun the same transaction #
- Save a copy of the Kepware project and record the converter's settings before editing either.
- Connection absent: set the converter to TCP server mode on the dialed port and confirm an established session before moving on.
- Framing wrong: switch the converter to the transparent mode and rerun the identical transaction.
- Address wrong: point the PLC instruction's destination at the server's device and rerun.
- Tag wrong: correct that one tag's address or data type against the decoded request.
One change per run. A second edit before the rerun hides which one mattered, and you are back at the capture.
The decision for each case #
- The PLCs write their values and Kepware shows nothing: keep Modbus RTU Server Serial with Ethernet Encapsulation and repair the tunnel with the checks above. No driver change is part of this fix.
- You expected Kepware to pull values out of the PLCs: no server setting does that. Add Modbus writes to the PLC application so the values arrive on their own, or re-role the link so the PLCs serve and a Kepware client polls — an architecture change, not a repair.
- The converter has no transparent mode: replace it with one that forwards serial bytes unchanged. Converting gateways feed Modbus TCP slaves, and this driver is not one.
- A proposal to load the PLC vendor's driver because of the model name: decline it for this link. The protocol on the wire chooses the driver, not the model name.
Questions asked
Why did the slave emulator receive data while Kepware received nothing?
The passing run proves the RS-485 segment delivers frames, the converter's serial settings match the PLCs, and the uplink forwards bytes — and nothing else. It never proves which side dials, which port listens, or which framing the driver will accept. Before drawing any conclusion from it, open the emulator's connection setup and note the framing it was configured for: an emulator running as a Modbus TCP slave shows the converter is converting frames, and the RTU server driver will discard every one of them until the converter's mode changes.
What would it take to read these PLCs with their native driver instead?
More than a driver swap. The PLC application would have to expose its data over the vendor's native protocol on the port that protocol uses, Kepware would need that driver added to the installed suite, and the working Modbus writes would be replaced by new PLC code. Against that, the repair in this article is configuration only.
Does the tunnel have to run on the port already in the project?
No. Modbus TCP is registered on port 502; an RTU-over-TCP tunnel has no assigned port, so the number is whatever the installer chose. Two rules do apply: the dialing side must target the exact port the listener uses, and the listening port must be free of any other program on that PC, because a port conflict produces the same silence as a wrong address. Keep the number in the project and spend the effort on direction and framing.
Where can I watch the driver reject traffic?
In two places. Run a packet capture on the Kepware computer while a single PLC transaction fires, filtered to the tunnel port, then count the request's payload bytes exactly as the worked example does; a connection with no payload means the request never left the serial side. Next, open the driver's communication diagnostics and check whether it reports received bytes at all. Bytes counted but tags unmoved points past transport to the unit address or the register mapping.

