IMDHMIControls LibraryShop main store

Troubleshooting

Why CLICK PLC Modbus RTU writes to SOLO 4896 fail intermittently

Industrial networks Published 9 min read

Short answer

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.

On this page
  1. Why do CLICK PLC writes to a SOLO 4896 work only sometimes?
  2. What happens when a Send rung stays continuously enabled?
  3. How many writes can a SOLO 4896 memory take before it wears out?
  4. How do I sequence reads, writes and readback on one CLICK serial port?
  5. How should the EA9 HMI pass a new setpoint into the CLICK PLC?
  6. Should SOLO status bits be received into C bits or Y outputs?
  7. What do I check when a one-shot write still fails?
  8. Which fix applies to which symptom?
  9. Questions asked

A CLICK PLC writes inconsistently to a SOLO 4896 for one dominant reason: the rung enabling the Send instruction stays true, so the PLC retransmits the write as fast as the serial port allows, the polled reads compete with it for the same RS-485 network, and every retry spends the SOLO's nonvolatile memory, which its specification rates for 100,000 writes. The fix is a transaction discipline, not new hardware. Pulse each write once, wait for the instruction's Success bit or Error flag, keep the setpoint the EA9 HMI enters in its own command register (DS100 in the example layout below), keep the value read back from the SOLO in a separate register (DS72, the second register of the block that begins at DS71), and let the comparison of those two trigger exactly one write. Reads can stay on a schedule; a read writes nothing to the controller.

Why do CLICK PLC writes to a SOLO 4896 work only sometimes? #

The write fails intermittently because the rung enabling the Send instruction stays true until the next read updates the feedback register, so the PLC retransmits the write continuously while reads and writes contend for the one RS-485 port.

The trigger for the write is the comparison of the command register against the readback register, here DS100 <> DS72. That condition cannot clear itself: DS72 only changes when a Receive instruction completes and delivers fresh data from the SOLO. Between one readback and the next, the condition stays true and an enabled Send rung keeps firing. Whether any single attempt succeeds depends on which instruction wins the port that instant, which is why the fault looks random rather than systematic. A read and a write sharing one serial port collide the same way on other slave families; the article Why a Modbus RTU read and write on one port drops VFD control documents the same collision pattern on drives.

What happens when a Send rung stays continuously enabled? #

A Send instruction left continuously enabled executes over and over, and the CLICK's Success bit turns on automatically after each execution, so the rung looks healthy while it saturates the port with retries.

Two details compound the damage. First, the write condition holds for a whole poll cycle: with a 30 second read schedule, one setpoint change keeps the rung true for up to 30 seconds, and the Send instruction re-executes every time the scan reaches it. Second, the CLICK documentation states that the Success bit turns on automatically after the PLC executes the Send instruction, so the ladder collects success after success while the port is saturated, and the pattern hides its own cause. End every write rung with a one-shot: enable Send for exactly one transaction on the rising edge of the write request, set a busy bit, and enable nothing else on the port until Success or the Error flag returns.

How many writes can a SOLO 4896 memory take before it wears out? #

The SOLO's nonvolatile memory is rated for 100,000 writes, and a PLC that leaves a write rung enabled reaches that rating in under an hour, while a person pressing buttons never gets close.

Worked example, arithmetic shown. A write of one SOLO register is 8 bytes out and 8 bytes back, 16 bytes total. At 9600 baud with 8 data bits, no parity and one stop bit, a byte is 10 bits on the wire: 16 × 10 = 160 bits, and 160 ÷ 9600 bps = 16.7 ms of line time. Modbus RTU adds silent gaps of 3.5 character times before and after each frame; one character is 10 ÷ 9600 = 1.04 ms, so the gaps add 2 × 3.5 × 1.04 = 7.3 ms. One attempt therefore holds the port for about 24 ms, which is roughly 1000 ÷ 24 ≈ 40 attempts per second.

At that rate, 100,000 writes ÷ 40 attempts per second = 2500 seconds, about 42 minutes of continuous retrying, and the write rating is spent. A rung that never disables — a write aimed at the wrong register, so the readback never matches — gets there in under an hour.

Against that, three operator changes a day is 3 × 365 = 1095 writes a year, about one percent of the rating. The SOLO documentation does not state that an identical rewrite is filtered, so treat every transmitted write as consuming a cycle; the assumption costs nothing on an event-driven write and it is the only safe one. Reads are different: a Modbus read transfers data out of the controller without writing memory, so polling the SOLO's Data Registers and Bit Registers on a schedule never consumes any of the write rating.

How do I sequence reads, writes and readback on one CLICK serial port? #

Sequence the port so exactly one transaction is outstanding: read the SOLO block, wait for its Success bit, compare the command with the readback, pulse the write once, then read back and confirm.

  1. Schedule the reads. One Receive per SOLO per cycle — 30 seconds is ample for kettles and fermenters — reading the consecutive registers in a single block, so the setpoint pair lands in DS71 and DS72 with no second transaction.
  2. Wait for that Receive's Success bit, or its Error flag, before anything else uses the port.
  3. Compare the command with the readback: DS100 <> DS72. On the rising edge of that comparison, with the busy bit off, enable the Send instruction for exactly one transaction and set the busy bit on the same edge. Use the one-shot mechanism the CLICK project provides; never hold the enable true.
  4. On the write's Success bit, clear the busy bit and trigger one readback Receive.
  5. On the write's Error flag, clear the busy bit, copy the instruction's status code into a diagnostic register, and stop. No automatic retry: a retry loop is the fault you just removed.
  6. When the readback Receive completes, DS72 equal to DS100 closes the request; DS72 different after a completed write means a mapping problem, so run the still-failing checklist below.

That arrangement — one event-driven write slipped into the gaps between scheduled reads — is the pattern described in Speeding Up Modbus RTU Writes Behind Polled Reads. With several SOLO units on the network, a queued poller keeps the read round in order; Polling Many Modbus RTU Slaves With One Queued Function Block shows the queue structure.

How should the EA9 HMI pass a new setpoint into the CLICK PLC? #

Let the EA9 HMI write the requested setpoint into a PLC register — DS100 in this example layout — and let the PLC's comparison of DS100 with the SOLO readback in DS72 trigger the write; never let an HMI momentary switch enable the Send rung directly.

The panel talks to the CLICK over Ethernet, so from the PLC's side DS100 is simply a register that changes when the operator finishes an entry. That is the right division of labor: the HMI states what is wanted, the PLC decides when the serial port is free to act on it. A momentary pushbutton on the EA9 should set a bit or a value in PLC memory and nothing more; ladder logic consuming that value owns the transaction, and the port sequencing stays in one place. Map the EA9 entry object to the PLC's DS100, never to a panel-local tag. If the entry field ever displays a setpoint nobody typed, the object is mapped to the wrong place — fix that before touching the ladder; the article on why an HMI edit box shows a value that was never set covers that fault in detail.

Should SOLO status bits be received into C bits or Y outputs? #

Map the SOLO's output-state bit into a C bit, not a Y output, because a Receive instruction writes its received data straight into the destination addresses and a Y is a physical point your program and the machine's contactors act on.

The project behind this fault made exactly that correction: the SOLO output-on status had been received into a Y and was moved to a C bit. Received data is a copy of the slave's state that updates only when a Receive completes, so it belongs in internal bits; a stale or lost frame would otherwise leave real outputs driven by the last received word. Safety note: never let a communication receive command a physical output that moves or heats anything — write those outputs only from logic you control. The same rule covers the write path: assign the Send instruction's Error Flag to a C bit, as the CLICK instruction configuration expects.

What do I check when a one-shot write still fails? #

When a one-shot write still returns an error or the readback never matches, work down this list, because every remaining cause is a configuration detail rather than the sequencing.

  • Slave address: every SOLO needs its own Modbus slave address, and the Send must target the same unit the readback Receive polls — writing unit 3 while comparing unit 4's DS72 leaves the compare stuck and the rung enabled.
  • Register pairing: keep the two-register read in one Receive. Splitting the pair into two transactions doubles the port time and lets DS71 and DS72 go stale between halves.
  • Serial settings: baud, parity and stop bits must match on the CLICK port and on every SOLO; a mismatch surfaces as intermittent errors rather than clean ones.
  • One master: the CLICK is the only Modbus master on the RS-485 pair. A laptop tool left connected, or any second master, corrupts traffic unpredictably.
  • Value path: if the write completes but the readback differs, the value was translated on the way in or the destination register is not the one the Receive reads — confirm the write targets that same register.
  • Error evidence: capture the instruction's status code on every Error flag. A timeout points at wiring, addressing or framing; an exception response means the SOLO received the request and refused the register or value.

Which fix applies to which symptom? #

Match the symptom to its decision: an always-enabled rung becomes a one-shot with a Success-or-Error wait, a stuck compare becomes a register-mapping check, a write error becomes a captured status code, and normal operation is one write per operator change with scheduled reads.

Symptom Root cause Decision
Writes land sometimes, error other times Write rung enabled continuously; port contention with the polled reads Pulse Send once per request, set a busy bit, wait for Success or the Error flag before the next transaction
Write completes but DS72 never matches Write targets a different register or unit than the read Write the same register the Receive reads, on the same slave address, then read back and compare
Write errors every time Framing or addressing: baud, parity, stop bits, slave address Match the port settings on both ends and capture the instruction status code before any retry
A SOLO dies after months of service Nonvolatile write endurance spent by repeated writes Keep writes event-driven; the rating is 100,000 writes and reads do not consume it

Applied here — several SOLO 4896 controllers on one CLICK serial port, an EA9 for the entries — pulse the write rung, sequence it behind the scheduled reads, verify with the DS72 readback, and the writes stop being intermittent: one transaction per operator change, no retries, no endurance spent.

Questions asked

Can two Modbus transactions run at once on the CLICK's serial port?

No. One RS-485 port carries one transaction at a time, so each Send or Receive must finish, Success bit on or Error flag on, before the ladder enables the next. The busy bit in the sequence exists to enforce exactly that rule. Two instructions enabled together on one port produce the same intermittent errors on any slave, not only on a SOLO.

Does the Success bit prove the SOLO accepted the write?

The Success bit reports that the Send instruction ran to completion; it does not compare values and it does not confirm the SOLO stored anything. The only proof a setpoint changed is the readback Receive showing DS72 equal to DS100, which is why the sequence reads the controller back after every write before the request is closed.

How much serial port time does a round of nine SOLO units take?

A two-register read at 9600 baud occupies the port for roughly 25 ms including the silent gaps, so nine units cost about 0.22 s per full round. Polling each unit once per second therefore keeps the port busy less than a quarter of the time, which is what leaves room for event-driven writes without reordering the reads.

Can the EA9 HMI write the SOLO setpoint directly over its own serial port?

Keep every SOLO write inside the CLICK. If the panel wrote the controller directly, the PLC readback would no longer show what the operator asked for, the busy-bit sequencing would be bypassed, and a second Modbus master would share the RS-485 pair with the CLICK. Route the entry through DS100 and let the ladder own the transaction; the HMI's Ethernet link to the PLC costs nothing on the serial side.

Keep reading

  • 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

    Fix PLC-5 connection broken when polling ASCII scales via Digi IAP

    Fix it at the encoding, not the wiring: run Digi One IAP firmware F or newer, read each scale with a "PLC-5 Typed Read to SLC" message, and prove ports 1 and 2 one transaction at a time. Firmware E rarely parses a real PLC-5's layered addressing; validate the poll write separately with a packet capture.

    Industrial networks

  • Troubleshooting

    Why a DL05 Modbus RTU slave answers only with ODD parity

    Set the Modbus master to the DL05 port's factory combination of 9600 baud, ODD parity, 8 data bits and 1 stop bit, and the slave answers. Connect on Port 2 with the cable your programming software uses, keep a minimal program containing an END instruction in the PLC, leave the mode switch in TERM, and cycle to RUN and back if the port stays dead.

    Industrial networks