Troubleshooting
Why an S7-1500 to QJ71MB91 Modbus RTU link stays silent
Short answer
The link stays silent when both ends wait for a request, the port's interface mode is wrong, the wire pairs are not crossed, or the register map is misaligned. Make the S7-1500 the Modbus RTU master and the QJ71MB91 the slave, set the instance DB's mode static for the installed interface before the first call, cross the transmit and receive pairs, and prove one mapped register before widening.
On this page
- Put the S7-1500 in charge of the link
- Set the interface mode before the first request
- Cross the RS422 pairs and keep the polarity
- Match the framing before blaming the map
- Give the QJ71MB91 its station number
- Worked example: mapping holding register 40003 to D102
- Prove the link one register at a time
- Questions asked
A silent RS422 link between an S7-1500 in TIA Portal and a Mitsubishi QJ71MB91 fails in a fixed order, so work that order: put exactly one master on the wire, set the Modbus_Comm_Load instance DB static mode for the installed interface before its first call, cross the transmit and receive pairs with polarity matched, enter identical character framing, then match the station number and the holding-register-to-D-register map. Make the Siemens side the Modbus RTU master and the QJ71MB91 the slave, and prove each stage with a single-register read before you widen anything.
Put the S7-1500 in charge of the link #
Modbus RTU is strictly master-slave: one device issues every request, the addressed device answers, and everything else stays quiet. Choose the roles before touching any setting, because two masters on one link collide and two slaves transmit nothing at all — the second case is why a new link so often looks dead rather than flaky. Use the S7-1500 as the master, driving a serial port on its CM PtP through the Modbus_Master instruction, and the QJ71MB91 as the slave. Siemens documents this architecture in its S7-1500 Modbus RTU master-slave application example, document 68202723; its hardware settings do not transfer to your cabinet, but the request sequence does. The same all-quiet signature is worked through in why a CJ2M Modbus RTU master gets no answer from an S7-1200, where the master-slave split, not the cable, decided the outcome.
Decision: one initiator on the wire, and on this link it is the S7-1500.
Set the interface mode before the first request #
The Modbus_Comm_Load instruction configures the port that Modbus_Master then uses, and its instance DB carries a static named mode that selects the electrical operation of that port. Write mode for the physical interface before Modbus_Comm_Load executes: the documented example values are 0 for RS232 and 4 for RS485, and the online help of your installed instruction version carries the value for four-wire RS422 operation — write it, don't guess it. If mode does not match the interface, the port drives the wrong electrical mode, the module's receive pair stays idle, and the link is silent no matter how correct the rest of the configuration is.
Call Modbus_Comm_Load once on a startup edge and let it complete before the first request; calling it every scan re-initializes a port that is mid-transaction. The CPU order number tells you nothing here — the mode value and the wiring both belong to the communications module in the hardware configuration, so read that designation first.
Decision: mode written for the installed interface, one initialization per port, requests only after it completes.
Cross the RS422 pairs and keep the polarity #
RS422 gives each direction its own pair, which is exactly why it avoids the direction switching a two-wire RS485 segment needs. Matching terminals by letter is the trap, because the two manufacturers name and order their signals differently — trace function, not position. The S7-1500 transmit pair lands on the module receive pair and the module transmit pair lands on the PLC receive pair, positive to positive and negative to negative as each manual defines its A and B signals. Take the signal reference and shield connections from the QJ71MB91 channel diagram in the MODBUS Interface Module User's Manual; a drive wiring drawing is the wrong drawing for this module, however similar the terminals look.
Decision: each end transmits into the other end's receiver with polarity matched by signal name — if continuity fails on one pair, fix that pair before any software change.
Match the framing before blaming the map #
Baud rate, data bits, parity and stop bits must be identical at both ends, entered explicitly rather than left at factory defaults. Then add the RTU rule: the protocol frames messages by silence, so a frame ends and the next may begin only after an idle gap of 3.5 character times, and a master that retries too eagerly can shred frames that were otherwise correct. The timing behind that rule is worked through in how the RTU silent interval and CRC-16 frame a message.
Decision: identical explicit framing at both ends, confirmed by reading the two configurations side by side rather than assuming either default.
Give the QJ71MB91 its station number #
The slave station number is set in the module's slave parameters, and the master carries the number it addresses in the matching input of Modbus_Master. The two must be equal. Valid slave numbers run 1 through 247, and number 0 is the broadcast address, which a slave answers with silence by definition — a read aimed at 0 returns nothing forever. If the master transmits to 0 no matter what you enter, that fault has its own walk-through in why Modbus RTU sends to slave address 0 instead of your device.
Decision: the same non-zero station number written at both ends.
Worked example: mapping holding register 40003 to D102 #
Inputs, each with its source:
- Register area: the Automatic Communication Function in the module's slave parameters maps the master's holding-register area, references 40000 and above, onto D registers — this is the mapping this link's configuration calls for.
- Mapped start: this example maps reference 40001 to D100. Both are example values you enter in those slave parameters; your installation substitutes its own.
- Register width: one holding register is one 16-bit register in the Modbus specification and one D register holds one 16-bit word, so each reference step is exactly one D address.
Rule in words: subtract 40001 from the printed reference to get the protocol address, because the 4xxxx notation counts from one while the wire protocol counts from zero; then add that protocol address to the mapped D start to find the word the answer occupies.
Arithmetic:
- 40003 - 40001 = 2, so reference 40003 is protocol address 2.
- D100 plus 2 words = D102, so a one-register read at address 2 returns the word held in D102.
Result: address 2 with a count of one register brings back the 16-bit word in D102.
Decision: make the first test read address 0, one register. An answer there clears the electrical, framing and station stages at once, and the returned word must equal the value you placed in D100. A response that arrives with the wrong value indicts the mapping start, not the serial path — shift the module's mapped start by the offset between where the value sits and where you looked. No response at all indicts the stages above. Widen the read only after address 0 and D100 agree.
One safety note before any test write: Mitsubishi's manual warns that an intelligent function module can modify data of a running controller, so place an interlock circuit in the PLC program first and put the first test value in a spare D word.
Prove the link one register at a time #
Work the list top to bottom and stop at the first stage that fails:
- Fix the roles: S7-1500 master, QJ71MB91 slave, one initiator on the wire.
- Write the
modestatic for the installed interface and call Modbus_Comm_Load once at startup, before any request. - Cross the transmit and receive pairs and check continuity against both manuals' signal names.
- Enter identical baud, parity and stop bits at both ends.
- Enter equal, non-zero station numbers.
- Enable the Automatic Communication Function and record the mapped area's start reference and its D-register start word.
- Read one register — address 0 in the mapping above — and compare the returned word with the value you placed.
- Widen the range only after stage 7 answers correctly, and keep reads inside the mapped area, because a read across an unmapped gap returns the fault described in Modbus exception 02 when a read crosses a register map gap.
Sequencing belongs to commissioning, not optimization: start the next request only after the previous one's done output sets, and give the slave its processing time before judging a timeout. When one serial port ends up serving many slaves or drives, cycle time becomes the next problem, which why Modbus RTU drive polling on one serial port is slow works through in detail.
A link that passes the one-register test with the right value in the right D word is commissioned. Everything beyond it — wider ranges, writes, multi-register words — is application work on a path you have already proven end to end.
Questions asked
Can the roles be reversed so the QJ71MB91 is the master?
Yes. The QJ71MB91 supports both master and slave operation, and Siemens publishes a Modbus_Slave instruction for the S7-1500, so the module can poll while the PLC answers. Pick one arrangement and configure only that: two masters collide, and two slaves wait forever in silence. The wiring, framing and station checks stay the same either way; only the request initiator and the register ownership swap sides.
What serial format does Modbus RTU assume if I leave the defaults?
The Modbus serial-line specification names 19200 baud, 8 data bits, even parity and 1 stop bit as its default character format. A default on each end is not a match: the value at the master and the value at the module have to be entered identically, because a parity or stop-bit difference turns every reply into CRC errors even over a perfect cable.
Do the RS422 pairs need termination?
Yes. Each pair terminates at the end farthest from its driver, because an RS422 pair has one driver and receivers only. Fit a resistor equal to the cable's characteristic impedance, about 120 ohms for ordinary twisted shielded pair, across the two conductors of each pair at the receiving end. An unterminated short link often behaves on the bench and fails once cable length or noise grows.
What should I record before changing settings?
Record the Siemens communications module designation and channel, the value held by the mode static in the Modbus_Comm_Load instance DB, the framing at both ends, both station numbers, the mapped area's register reference and its D-register start, and one known test value. With that record, a link that goes silent after a change tells you which stage you moved instead of making you re-derive the whole path.