Troubleshooting
Why Ignition Modbus RTU tags go red and back on a serial PLC
Short answer
A Modbus RTU tag that flips red and back again is usually a dropped frame, not a broken network. One lost or CRC-damaged request or response holds the serial request queue until the driver timeout expires — 3000 ms in the reported setup — so every read queued behind it goes bad, then recovers. Baseline the link with one register and TRACE logging, read the driver overload percentage, then set the timeout above the PLC's measured worst-case response.

On this page
- Why one bad frame turns a batch of tags red
- Isolate the cause: one register, TRACE logging, and the overload percentage
- One dropped frame with a 3000 ms timeout against 300 ms
- When the queue, not the wire, is the fault
- One master at a time on the shared port
- When to change the driver path instead of the wire
- Questions asked
Modbus RTU tags that flip red and recover on their own point at one cause: an exchange that never received its answer. On a serial link the master keeps a failed request open until its communication timeout expires, so one lost or CRC-damaged frame stalls the entire request queue, turns every read queued behind it bad, and releases them all when the driver cancels the dead transaction. Work the diagnosis in a fixed order: baseline the link with a single register and TRACE logging, read the overload percentage on the driver status page, then set the timeout just above the PLC's measured worst-case response so one bad frame costs a fraction of a second instead of seconds.
Why one bad frame turns a batch of tags red #
Modbus RTU is strictly one request and one response at a time on the wire: the master transmits a frame, the addressed slave answers, and no new transaction begins until the exchange closes. Each receiver ends a frame where the line falls silent, so a frame that is truncated, mistimed or bit-damaged fails its CRC check and is discarded with no error reply — the mechanism behind why a frame gap before the CRC silences an RTU slave. A CRC failure is the quiet fault: nothing comes back, and the only trace it leaves on the master is the missing response.
The master holds that unanswered transaction open until its timeout expires. Every read queued behind it waits through the same stall; when the timeout fires, the driver cancels the exchange, drains the backlog, and clean polling resumes. That sequence is the entire visible symptom — a batch of tags goes bad together, then returns to good without anyone touching anything.
Isolate the cause: one register, TRACE logging, and the overload percentage #
Run this sequence before changing any setting or wire; it separates a load problem from a line problem in one afternoon:
- Read the serial configuration at both ends instead of trusting that intermittent traffic proves it: baud rate, data bits, parity, stop bits, the slave address, and any flow-control requirement on the RS232 port must match what the PLC's serial card expects.
- Keep one physical route under test. In the reported case the comms selector switch was bypassed and the dropouts continued, so the switch was already excluded there — leave the route direct anyway so that variable cannot return while you measure.
- Put one known register on scan and run it through several normal failure intervals. If that single read still cycles bad, the fault sits in the link or the PLC's serial interface, not in polling volume.
- Set the Modbus driver's log level to TRACE, record the wall-clock time of every red event, and match each event to the request, response, timeout and cancellation entries printed around it.
- Watch the overload percentage on the driver status page while the single register runs. It should sit at zero at that load; a nonzero reading this early points at driver or port settings, not at too many tags.
- Classify every event by its fingerprint: a timeout entry with no response means a lost request, a lost response or a silent PLC; a CRC or malformed-frame entry means line corruption; a burst of cancellations after visible queue growth means the port has run out of transaction budget.
One dropped frame with a 3000 ms timeout against 300 ms #
The inputs come from the reported case: an Ignition 8.1.53 gateway speaking Modbus RTU over a serial port to a legacy PLC on a PCMCIA RS232 MP card, the connection's communication timeout set to 3000 ms, and the shorter value proposed for that setup, 300 ms. The trigger behind every red event is one frame lost or CRC-damaged in either direction, dropped by whichever end receives it.
The rule of the link: transactions run one at a time, and the master holds each one open until a complete, CRC-valid frame arrives or the timeout expires. One dropped frame therefore stalls the whole request queue for exactly the timeout duration, and every queued read inherits the delay until the driver cancels the exchange.
The arithmetic: one bad frame at the configured setting costs 3000 ms = 3.0 s of queue stall. The same event at the shorter setting costs 300 ms = 0.3 s. That is 3000 ÷ 300 = 10, so the queue resumes ten times faster per failure. Two bad frames in a row cost 2 × 3000 ms = 6000 ms (6 s) of dead air at the long setting, against 2 × 300 ms = 600 ms (0.6 s) at the short one — the difference between a screen that blinks and one an operator reports as down.
The result: recovery time per dropped frame equals the timeout setting, so the length of every red cycle tracks that one number, not the size of the tag list.
The decision: shorten the timeout only as far as the PLC's own response allows. Take the worst normal response time from the single-register TRACE run; if it stays below 150 ms, run the 300 ms setting, which leaves half the interval as headroom. If the worst logged response lands above 150 ms, set the timeout at about twice that worst case instead of forcing the shorter value. The shorter setting does not repair the CRC damage; it only cuts how long each damage event holds the queue. Never set the timeout below the measured worst-case response, because that converts slow-but-valid answers into new failures.
When the queue, not the wire, is the fault #
Every transaction pays four costs before the next one can begin: the request on the wire, the PLC's own response time, the response on the wire, and the enforced silence between frames. A serial port therefore closes a limited number of exchanges per second — the ceiling examined in why drive polling on one serial port is slow. When the configured tag groups demand more transactions than the port can close, the queue grows until requests expire, the driver cancels the backlog, and polling appears to recover on its own — the identical red-then-black cycle with a load cause instead of a line cause.
The overload percentage is the verdict. If it climbs or holds above zero through normal production, cut the workload rather than lengthening the wait: lower the tag group rate, merge contiguous registers into one wider read where the driver allows it, or split the data into fast and slow groups by process need. Budget the port deliberately the way a polling scheduler sequences many RTU slaves from one serial master does, and leave headroom for the retries a real plant generates. Extending the timeout on an overloaded port makes every visible outage longer while hiding nothing.
One master at a time on the shared port #
The reported case hands one RS232 line to two masters — the old SCADA system and the Ignition gateway — through a selector switch. The bypass test cleared that switch in this case, but the arrangement still carries two rules. First, only one master may drive the port at a time; the exclusive access that two SCADA servers writing to one PLC over Modbus TCP demands applies just as hard on a switched serial line. Second, use the old system as an instrument: with the Ignition path disconnected, let it poll the same interface at an equivalent load. If it also reports errors, the fault sits in the common serial circuit or the PLC interface; if it runs clean where Ignition fails, the problem is the Ignition driver path, and the next section is the move.
Switch the selector only between write operations, never while a command is in flight — a mid-write switchover can land a start, a setpoint or a valve command on the PLC the operator believes is disconnected.
When to change the driver path instead of the wire #
Move to a converter only on a clear verdict, and only when three findings hold together: the serial settings are verified at both ends, the single-register baseline ran clean at low load, and the red cycles return at production load with the overload percentage near zero and no CRC entries in the TRACE log. That combination points at the driver path, not the wire. It matches the workaround users report for stubborn cases on this driver: a serial-to-TCP converter placed in the cabinet and the Modbus TCP driver pointed at it — the same arrangement as a gateway set in front of a legacy serial PLC for Modbus RTU.
Do not lead with the converter. Its serial leg on the PLC side still carries whatever grounding or shielding fault is corrupting frames, so an unverified wire becomes a fault the new layout inherits. Change one thing per test, rerun the single-register baseline before production tags return, and treat the converter path as confirmed only when a full production day passes without a red cycle.
Questions asked
How much silence must separate two Modbus RTU frames?
The Modbus RTU specification requires at least 3.5 character times of line silence between frames. At 9600 baud with 8 data bits, no parity and one stop bit, a character is 10 bits, so the gap is 3.5 × 10 ÷ 9600, about 3.6 ms. Above 19200 baud the specification fixes the gap at 1.75 ms regardless of speed. A silence that long inside a frame ends it early, the CRC check fails, and the partial frame is dropped.
Can one serial connection poll more than one PLC station?
Yes. On one RS485 multidrop segment, or behind a Modbus gateway, a single driver connection reaches every slave: the Unit ID carried in each request selects which slave answers. The vendor documents this for Ignition — one Modbus driver connection references multiple Unit IDs by connecting through a Modbus gateway. One connection still means one request queue, so the transaction budget of the port is shared by every Unit ID on it.
How many Modbus RTU exchanges fit in one second at 9600 baud?
At 9600 baud, 8 data bits and one stop bit, reading one holding register costs an 8-byte request and a 7-byte response: 15 characters, 150 bits. Add the 35-bit inter-frame silence and one exchange needs 185 bits ÷ 9600 bps, about 19.3 ms — a hard wire floor of roughly 52 exchanges per second. The PLC's response time stacks on top of that, so budget below the floor using the worst cases in your TRACE log.
What does the overload percentage on the driver status page mean?
It is the driver's own signal that the request queue cannot keep up with the tags and rates configured against that port. Treat any reading that climbs or holds above zero through normal production as a verdict: cut the workload by lowering the tag group rate, merging contiguous registers into wider reads, or splitting data into fast and slow groups. Lengthening the timeout there only makes each outage last longer.


