Troubleshooting
Why CM1241 RS485 A/B polarity stops Modbus RTU slave replies
Short answer
Your communication-load instruction completing with DONE true and STATUS 16#0000 for one cycle proves the port initialized; the blinking Rx LED proves only that differential activity reaches the CM1241. With A and B swapped, every request fails framing and CRC, so the slave stays silent. Swap the pair at the adapter, then match baud, parity, stop bits and slave address.
On this page
A blinking Rx LED with no reply does not mean the Modbus RTU link works. In the fault behind this article, the communication-load instruction completed with DONE true and STATUS 16#0000 for one PLC cycle, the CM1241 receive LED blinked on every poll, and the PLC serving as slave never answered a single holding-register read. The fault was physical: A and B were mislabeled on the USB-to-RS485 adapter, so every request arrived with inverted polarity, failed character framing and the CRC check, and the slave instruction discarded it without replying. Swap the pair at the adapter first — a mislabeled A/B is the most common RS485 fault — then match baud, parity, stop bits and slave address. The sections below cover the trace that proves initialization, the reason the LED lies, and the check order that separates a wiring fault from a settings mismatch.
Trace the load completion before you blame the port #
Modbus_Comm_Load configures the serial port: baud rate, parity and the interface mode. DONE true with STATUS 16#0000, even for a single scan, closes the initialization branch — the port is configured and the parameters were accepted. After that, a silent slave is not an initialization problem.
A watch table makes that completion invisible. It samples the instruction outputs at its own update rate, and a transition that opens and closes within one cycle reads on screen as a status that never moves, which is exactly why 16#7000 appeared to sit still while the port was fine. Read REQ, DONE, ERROR and STATUS with a trace through startup instead; the trace captures what the display cannot.
Interpret any status code against the help for the exact instruction that produces it. Codes do not carry universal meanings across communication blocks, so 16#7000 is not a value to decode on its own — the useful observation in this fault is the traced completion, not the screen value.
Call the load instruction once at startup, from the startup OB or off the first-scan bit, and leave it alone. Reloading the port while the slave is serving requests resets the interface between master polls and manufactures a second fault. If DONE never arrives at all, the port setup itself is failing, which is a different fault with its own path: Why modbus_comm_Load Done stays false on an S7-1200 G2.
Why the receive LED blinks on a swapped pair #
RS485 sends every bit as the voltage difference between two conductors. The standard names the inverting line A and the non-inverting line B, but the letters are a labeling convention, not a wiring guarantee: vendors mark ports + and -, D+ and D-, or follow the letter convention in reverse. Silkscreen letters alone are therefore not a cross-vendor wiring specification — that gap is the subject of why Modbus RS485 A/B signal labels vary between vendors — so read each device documentation for the electrical definition of its terminals before trusting the printing.
Swap the pair and the receiver sees the same signal magnitude with the opposite sign. The transitions are just as lively, so the receive LED blinks on every poll. But the bit stream arrives inverted: the bytes reassemble as different characters, and the frame the Modbus layer receives is not the frame the master sent. Every Modbus RTU frame ends with a CRC the receiver checks before acting, and a request that fails it is discarded before any reply logic runs, so the master sees a timeout rather than an exception. The LED proves that the driver, the cable and the receiver input stage are alive; it proves nothing about bit integrity. Silence together with receive activity is the signature of a physical-layer fault.
Swap the pair at one point and retest #
Take the machine to a safe state and open the loop supply before touching terminals. Reverse the two signal conductors at one point only — at the adapter, in this fault — and issue one read request. Reversing at both ends restores the original inversion, so exactly one device changes orientation.
If replies appear, the pair orientation was the fault: update the wiring drawing and the terminal record so the next engineer does not correct it back into the problem. If silence survives both orientations, polarity is ruled out, because a working receiver has now seen both settings; the remaining suspects are the serial format, the station number and termination.
Terminate the ends, not every drop #
Termination is the remaining physical-layer check, and it has a failure mode of its own. The RS485 standard specifies 120 Ω for the differential pair, and termination means a resistor of that value across A and B at the two physical ends of the segment only. The CB 1241 RS485 connection diagram in the controller documentation ties the TA and TB terminals for exactly this purpose and applies it to the end devices only; your module own connection diagram names its termination terminals.
Worked example, illustrative: what the driver actually sees. Put the PLC at one end of a short segment and the adapter at the other, each end terminated. Ignoring cable and driver resistance, the two resistors appear in parallel at the driver: (120 Ω × 120 Ω) / (120 Ω + 120 Ω) = 60 Ω. The standard requires a compliant driver to deliver more than 1.5 V into that differential load, so the driver sits at its design point, and 1.5 V across 60 Ω is 25 mA of drive current.
Add one mid-line device terminated for good measure and the load becomes (60 Ω × 120 Ω) / (60 Ω + 120 Ω) = 40 Ω; the same 1.5 V now demands 37.5 mA. Six terminated devices give 120 Ω / 6 = 20 Ω and 75 mA, three times the design current. Marginal drivers fold, signal levels sag, and the link begins throwing CRC errors and timeouts that mimic a completely different fault.
Decision: verify termination at the two ends and remove it everywhere else. Bias and shield faults show up as intermittent CRC errors on long runs, not as the clean blink-and-silence signature above, so leave them until polarity, format and station number are closed.
Match the serial format and the slave address #
Once the pair decodes, remaining silence is almost always settings. Baud rate, parity and stop bits must match at both ends character for character. The Modbus RTU convention is 8 data bits, even parity and one stop bit, but devices deviate — one DL05 slave answers only with ODD parity, as described in Why a DL05 Modbus RTU slave answers only with ODD parity — so read the actual settings rather than assuming either default.
Then confirm the station number. The slave answers only requests that carry its configured address; a frame addressed to 0 is a broadcast, which slaves execute without answering, so a master aimed at the wrong station produces perfect silence. The routes that lead a master to send to station 0 are covered in Why Modbus RTU sends to slave address 0 instead of your device. Finally, check that the master function code and register range fall inside the map the slave instruction serves. An exception reply proves the electrical layer and the framing are good, and the request content becomes the fault — the master-side register-address equivalent is in Why MB_MASTER on an S7-1200 reports Modbus error 16#8188.
Work the branches in this order #
Each check closes one branch; stop as soon as the symptom changes.
- Trace the load instruction through startup.
DONEtrue withSTATUS16#0000 for one cycle closes the initialization branch;DONEnever arriving is a separate fault with its own fix. - Poll the slave and watch the receive LED. No blink at all points at the master port, the cable path or an unpowered adapter, not at the PLC.
- Blinking with no reply: reverse the A/B pair at one point and retest with a single read. That swap is the fix in the fault behind this article.
- Still silent: match baud, parity and stop bits at both ends.
- Still silent: confirm the slave address equals the master target, and remember that a broadcast is not supposed to answer.
- Keep termination resistors at the two ends only and remove any mid-line termination.
- Treat an exception reply as proof the wire is good, then correct the function code, station number or register range.
The decision for each case #
- Load completion never traced: the port setup is failing; fix initialization first and leave the wiring until
DONEarrives. - Load completes for one cycle, receive LED blinks, slave silent: reverse the RS485 pair at one point and retest — that is the fix in this fault. Record the corrected orientation in the wiring documentation so nobody reverses it back.
- Silent in both orientations: polarity is ruled out; match the serial format, then the station number, then strip mid-line termination.
- Replies arrive as exceptions: the wire is good; correct the request function code, station number or register range.
- No receive activity during polling: the request is not arriving; check the master transmit side, the cable run and the adapter supply before touching the PLC again.
Questions asked
Why does the online status on the communication-load instruction never move?
The engineering station watch table samples instruction outputs at its own update rate, and a completion that opens and closes inside one PLC cycle can fall between samples, so the screen shows a value that looks permanent. A trace over startup, or a stored snapshot of REQ, DONE and STATUS saved to an array every scan for the first hundred scans, records the transition. The stored record is the evidence; the live display value is not.
Does a polarity swap damage anything while I test?
No. RS485 is a differential interface: the receiver decides from the voltage difference between the two conductors, and reversing them presents the same magnitude with opposite sign, within the receiver rated input range. Reversing the pair at one device is a safe diagnostic step taken with the loop at a safe state. The real damage risk in a cabinet is tying a signal terminal to a supply potential or mixing signal references, not exchanging the pair.
Do I have to run the communication-load instruction again after swapping the wires?
No. The load operation configures the serial interface and its parameters, which do not depend on the wiring, so a completed load stays valid across a polarity change. Swap the pair at a safe state and simply issue the next read request. The instruction needs to run again only if the port parameters change, the module is replaced, or the PLC restarts and the startup logic calls it as designed.
Can the master timeout counter confirm a polarity fault?
Indirectly, yes. With the pair swapped, the master transmits normally, the slave port shows receive activity on every poll, and each poll ends in a master-side timeout because no frame survives the CRC check. Timeouts together with a blinking receive LED point at the physical layer, while timeouts with a dead receive LED point at the master, the cable path or the adapter supply. Comparing both indicators on the same poll separates a wiring fault from a transmitter that never speaks.