Troubleshooting
Why an S7-1200 MB master gets status 80C8 with no reply
Short answer
80C8 is a slave timeout: the MB_MASTER call transmitted and accepted no response frame before the timeout expired. With a slave proven good by a laptop test tool, work the order A/B swap, slave ID, MB_COMM_LOAD on First Scan, then bus capture; the 400xx leading-zero entry is an address convention, not the fault.
On this page
Status 80C8 on an S7-1200 MB_MASTER call means the CM 1241 transmitted a request and accepted no response frame within the configured response timeout — a slave timeout, not a configuration rejection. When a laptop with an RS485-to-USB converter and a Modbus test tool talks to the same slave successfully, the slave is proven good and your fault sits in one of four places: reversed A/B polarity, a request addressed to the wrong slave ID, a port that MB_COMM_LOAD never configured correctly, or a framing/timing mismatch on the wire. Work them in that order; the last one needs a bus capture before you treat it as cause.
What 80C8 does and does not tell you #
The status text points at baud rate, parity and connectors on the slave, and you should verify those first — in the reported case, 19.2 kbaud and parity checked out, termination was in place through a Profibus plug with its terminating resistors, and the module hardware was proven by swapping with the working slave port. What remains after that is transmission that reaches the slave but is never accepted, or a reply that never reaches the master.
Note what 80C8 does not indicate. A frame broken by a large gap inside the telegram produces a different error status, not a slave timeout. And a timing fault alone does not explain total silence: the Modbus specification defines no slave-side monitoring of requests, so a slave that accepts requests at all answers at least the first telegram after a restart. Slaves reply only to frames they accept, which is why a wrong address or an unaccepted frame looks exactly like a dead wire — see article on why Modbus RTU slaves reply only to accepted request frames.
The diagnostic order that works #
Work this list top to bottom, retesting the MB_MASTER call after each step:
- Swap A and B at one end of the link. The RS485 standard labels A as negative and B as positive, but manufacturers do not follow one convention; your working USB converter may match the CHP controller's labeling while the CM 1241 uses the reverse. TX flashing on the module with no RX returning is the classic polarity signature, and this swap fixes that fault more often than any other single check. The same failure mode on another controller is covered in why CM1241 RS485 A/B polarity stops Modbus RTU slave replies.
- Verify the slave ID on the MB_ADDR parameter of MB_MASTER. A request sent to the wrong station gets silence — no reply, no exception frame — which presents as 80C8 even with perfect wiring.
- Confirm MB_COMM_LOAD runs exactly once, on the First Scan system bit. The port configuration block belongs only in the first cycle after PLC startup. A project that substituted its own call bit reported no errors but produced a port that emitted a few characters only when MB_MASTER executed, with no complete transaction. Check the block's DONE output and error status before enabling polling. Polling structure for a healthy port is a separate matter, handled in how to poll many Modbus RTU slaves from one serial master.
- Capture the actual frame on the bus. Put the known-good RS485-to-USB converter in listen mode on the link and record what the CM 1241 sends. One capture verifies slave ID, function code, register address, CRC, polarity and the real inter-frame gap in a single step.
- Only if the capture shows a valid, correctly addressed frame, measure the gap against the slave's stated requirement, as in the worked example below. If the module's configuration only offers millisecond adjustment and the required window is smaller, take the capture to the drive or controller vendor's support with the S7 side documented.
Working the inter-frame gap claim for a 19.2 kbaud link #
Suppose the engine controller's documentation demands a break between data packets of no more than 781.5 microseconds, and you want to know whether a whole-millisecond setting on the master side can meet it.
Inputs. Bit rate 19.2 kbaud, from the slave's configured serial parameters (verified in the project). Required break 781.5 microseconds, from the controller manufacturer's communication guide. The master's gap adjustment resolves to whole milliseconds, per the module's configuration interface.
Rule. Convert the required break into bit times, then compare against what a one-millisecond setting produces: a setting is acceptable when its duration is at least the required break.
Arithmetic. At 19.2 kbaud, one bit takes 1 / 19200 s = 52.08 microseconds. The required break is 781.5 µs / 52.08 µs per bit = 15 bit times. One millisecond equals 1000 microseconds, so a one-millisecond gap spans 1000 / 52.08 = 19.2 bit times — longer than the 15 bit times the controller asks for.
Result. Any gap set at one millisecond or more satisfies the 781.5 µs window; the master-side adjustment, even at millisecond resolution, cannot fall short of it from above.
Decision. The timing conjecture is physically consistent, so it earns a test — but only with a bus capture showing the real transmitted gap, and only after polarity, slave ID and port initialization have come back clean. If a valid captured request still gets a valid slave reply that the master rejects, that pattern points at frame handling in the module, not at wiring, and you escalate with the capture in hand.
The 400xx leading zero is a convention, not the fault #
The five-digit 400xx notation is the historical Modbus convention: the leading 4 only marks the register as a holding register read with function code 03, and it is not transmitted in the telegram. Some masters display the leading 4, some show only the index; where a block expects a six-digit field, a leading zero completes the entry (400001 for holding register 1). Addressing entry affects which register you read once communication works — it cannot produce a no-response timeout, because a slave asked for an address it does not hold returns an exception frame rather than silence. Investigate it last, after polarity, slave ID and port initialization.
How you know it is fixed #
After each step, rerun the MB_MASTER request. The fault is resolved when the call completes without the timeout status, the RX LED on the CM 1241 flashes with each transaction, and the register values returned match what your laptop test tool reads from the controller on the same link. If the RX LED still never flashes after the A/B swap, the slave ID check and a First Scan MB_COMM_LOAD, the capture in step 4 is not optional — it is the only remaining way to see which side of the wire is wrong.
Questions asked
Why does a wrong slave address produce 80C8 instead of an exception?
A Modbus RTU slave answers only the address it is configured for. A request addressed to another station gets no reply at all — not even exception code 02 or 03 — so the master times out and reports the slave-timeout status. That silence is what makes a wrong MB_ADDR on the MB_MASTER call look identical to reversed A/B wiring, and why the slave ID check comes early in the diagnostic order.
How many times should MB_COMM_LOAD run on an S7-1200?
Once, on the first scan after the PLC starts, driven by the First Scan system memory bit. Calling it from a self-made bit or from a repeating logic path can leave the port configured incorrectly with no error reported, so the module sends only a few characters when MB_MASTER executes and never completes a transaction. Check the call's DONE output and error status before you enable polling traffic.
Does an inter-frame gap problem always show as a timeout?
No. A gap inserted inside a transmitted frame makes the frame itself malformed, and that produces a different error status than the slave timeout. It also does not explain a total silence: a slave that accepts any request normally answers at least the first one after a restart. That is why the timing hypothesis stays last on the list until a bus capture measures the actual gap.