IMDHMIControls LibraryShop main store

Troubleshooting

Why a CLICK PLC Modbus FC3 stays in receiving on port 2

Industrial networks Published 5 min read By IMDHMI controls team

Short answer

When the receiving status on a CLICK port 2 Modbus instruction stays ON with success and error both OFF, the port never sees a complete valid response frame. Work through port configuration, the RS-232 crossover wiring, the slave's response framing and noise on the line, in that order.

On this page
  1. What the stuck receiving flag means
  2. Checklist in order
  3. Worked example: one FC3 read, checked byte by byte
  4. The decision for each case
  5. Questions asked

A CLICK Modbus instruction whose receiving status stays ON, with success and error both OFF, is telling you one thing: port 2 never receives a complete, valid response frame. The instruction has sent, or believes it has sent, a request and is waiting for a reply that never frames correctly. Since a laptop on the same slave gets a Modbus response, the fault is on the PLC side of the cable: the port configuration, the RS-232 wiring between the RJ-12 port and the slave's three wires, or electrical noise that keeps the receiver mid-frame. Work the checklist below in order.

What the stuck receiving flag means #

On the CLICK, port 2 can act as a Modbus RTU master or slave, or handle ASCII data. When configured for Modbus RTU master and triggered, an FC3 (read holding registers) instruction sends a request and watches the receive line for a response framed with the port's baud, parity and stop-bit settings. The outcomes are mutually exclusive: success when a valid frame with a good CRC arrives, error on timeout or a bad reply. Receiving stuck ON with no outcome means the receiver is seeing bytes it cannot frame into a complete message, or is being held in a receiving state by the line itself. Forcing the flag OFF and watching it return, with no trigger, points at the second case: the receive input is not sitting at a clean idle level.

Checklist in order #

  1. Confirm port 2 is set to Modbus RTU, not ASCII. A port left in ASCII mode never frames a Modbus response, so the instruction can wait forever. Open the port setup and set the protocol to Modbus RTU with the port as master.
  2. Match baud, data bits, parity and stop bits to the slave exactly. Read the settings out of the slave and copy them into the port. A parity mismatch corrupts every byte; a stop-bit mismatch breaks framing; a baud mismatch turns the reply into garbage that never passes the CRC check.
  3. Check the slave address against the instruction. The FC3 request carries the slave address the instruction targets. Address 0 is broadcast and gets no response at all, which looks exactly like this symptom.
  4. Verify the RS-232 crossover wiring. Common to common, RX to TX and TX to RX, with the slave's three wires on the correct pins of the CLICK's 6-pin RJ-12 connector. A straight-through cable puts TX against TX, so the request goes out and nothing ever comes back. Use the documented cable wiring diagrams rather than a telephone cable, which may reverse or short pairs.
  5. Give the receive line a defined idle level. An RS-232 RX input left floating or on an unshielded long run picks up noise, and the receiver may latch into its receiving state without any instruction triggered. Tie the commons together at both ends, keep the cable short and shielded, and confirm the slave actually drives its TX line to a valid RS-232 idle level.
  6. Put a serial monitor on the wire. A second serial port sniffing the PLC's transmit pair should show the FC3 request bytes appear when the rung triggers: slave address, function code 3, start register, register count, CRC low byte, CRC high byte. No bytes on a trigger means the fault is in the port setup or the instruction, not the cable.
  7. Compare against a known-good frame. Capture the request your laptop sent successfully to the slave, then capture the CLICK's request. If both are byte-identical and only the CLICK fails, the remaining difference is electrical: levels, common reference or noise.

Worked example: one FC3 read, checked byte by byte #

Take a slave at address 1 configured for 9600 baud, 8 data bits, even parity, 1 stop bit, and an FC3 instruction reading 2 holding registers at address 0.

The request the CLICK must send is 8 bytes: address 0x01, function 0x03, start register 0x0000, quantity 0x0002, then the CRC. The CRC for that fixed preamble works out to 0xC40B, transmitted low byte first: 0x0B then 0xC4. The full frame is:

01 03 00 00 00 02 0B C4

At 9600 baud with 8 data bits, even parity and 1 stop bit, each byte carries 1 start bit, 8 data bits, 1 parity bit and 1 stop bit, so 11 bits per byte. The frame time is 8 bytes x 11 bits = 88 bits, and 88 / 9600 = 0.0092 s, about 9 ms on the wire. The slave's reply for 2 registers is 9 bytes: address, function, byte count 0x04, 4 data bytes, CRC, so 9 x 11 = 99 bits, 99 / 9600 = 0.0103 s, about 10 ms. The whole transaction completes in roughly 20 ms of line time; anything past that with receiving still ON and no error is a line or framing problem, not a slow slave.

If your serial monitor shows those request bytes leaving the PLC and the slave's reply arriving back on the PLC's RX pin but receiving still latches, the reply is being corrupted between the connector and the receiver: check parity and stop bits once more, then suspect noise or a bad common.

The decision for each case #

  • No bytes out on a trigger: the fault is port configuration or the instruction. Fix the protocol mode, slave address and trigger logic first.
  • Request goes out, nothing returns on RX: the cable is straight-through, mis-pinned on the RJ-12, or the slave is not hearing the request. Rewire per the documented pinout.
  • Reply arrives but receiving stays ON: mismatched baud, parity or stop bits, or noise breaking the frame. Match the slave's settings exactly and clean up the line.
  • Receiving returns ON with no trigger at all: the RX line has no defined idle. Tie commons, shorten and shield the cable, and confirm the slave drives its TX idle level.

A related symptom on the same family of PLCs, a CLICK PLC Modbus RTU write to a third-party controller that fails intermittently, is covered in why CLICK PLC Modbus RTU writes to SOLO 4896 fail intermittently (article:why-click-plc-modbus-rtu-writes-to-solo-4896-fail-intermittently). For the frame-level timing that decides whether a slave hears a request at all, see why a Modbus RTU frame gap before the CRC silences the slave (article:why-a-modbus-rtu-frame-gap-before-the-crc-silences-the-slave).

Questions asked

Why does the receiving status come back ON even when the instruction is not triggered?

The receiving flag reflects the port's line state, not only the instruction's activity. A floating or noisy RS-232 RX line, or a byte stream the port cannot frame, keeps the port in its receiving state independently of the rung trigger. Grounding the common and giving the RX line a defined idle level stops this.

Can port 2 on the CLICK do Modbus RTU over RS-232 at all?

Yes. The CLICK PLUS hardware documentation states port 2 can act as a Modbus RTU master or slave or handle ASCII data, so RS-232 Modbus RTU on port 2 is a supported configuration. The RS-232 port carries only Modbus RTU, while other CLICK ports can be set to Modbus RTU or ASCII.

The slave answers a laptop but not the PLC. What does that rule out?

It rules out the slave's Modbus register map and its own serial settings as the primary fault, because the laptop command succeeded with the same slave. The difference is then in the PLC side: port configuration, the cable between RJ-12 and the 3-wire slave, or the request the CLICK instruction actually builds.

What should I see with a serial monitor between PLC and slave?

With the port monitor on the PLC's transmit pair you should see the FC3 request bytes go out when the rung triggers: slave address, function code 3, start register, quantity, then CRC, each byte framed at the configured 8E1 setting. If the monitor sees nothing when the rung triggers, the fault is before the wire: port setup or the instruction itself.

Is the 9600 baud 8E1 setting required?

No. 9600 baud, 8 data bits, even parity, 1 stop bit is a common worked example only. The requirement is that the CLICK port and the slave use the same baud, parity and stop bits, and that the slave's address matches the address the instruction targets.

Keep reading

  • Troubleshooting

    Why a CP 341 Modbus master returns status W#16#1E0D

    W#16#1E0D on a CP 341 Modbus master call means the serial transaction did not complete; on a link that once passed commissioning the fault sits on the Siemens side, in the cable path, or at the Schneider partner. Match the port variant from the order number, capture the line while real requests run, then use three laptop tests - passive monitor, slave simulator at the CP, master simulator at the Schneider PLC - to decide which side failed.

    Industrial networks

  • Explainer

    Why an S7-200 cannot share one RS-485 port with a PC and Modbus

    A CPU224 can serve a programming PC and four Modbus devices, but never through one shared RS-485 pair: a port runs either PPI programming traffic or the Modbus RTU master. Put the PC on port 0 and the Modbus master on port 1, wire the four devices as one terminated RS-485 trunk with unique addresses, and bring up each path separately before running them together.

    Industrial networks

  • Troubleshooting

    Why CLICK PLC Modbus RTU writes to SOLO 4896 fail intermittently

    The writes fail intermittently because the Send rung stays enabled: the PLC retransmits the write while the HMI command register differs from the SOLO readback, and each retry contends with the polled reads and spends the SOLO's 100,000-write nonvolatile endurance. Pulse each write once, wait for the Success bit or Error flag, read back, and compare.

    Industrial networks