Troubleshooting
Modbus_Comm_Load on an S7-1500 CM PtP stays idle at 16#7000
Short answer
STATUS 16#7000 on Modbus_Comm_Load means the block is idle: it has not processed any request, so DONE and ERROR stay false. Check that the instruction executes on an active path with one fresh REQ edge, that PORT matches the CM PtP RS422/485 HF hardware identifier, and that the Modbus_Master instance DB is linked at MB_DB before polling.
On this page
- Why does Modbus_Comm_Load stay at 16#7000 and never set DONE?
- Is DONE supposed to stay on after initialization?
- Is PORT 257 the right value for the CM PtP RS422/485 HF?
- Which serial settings must match the Altivar 650 drives?
- How do Modbus_Comm_Load and Modbus_Master share the instance DB?
- What call sequence makes DONE and ERROR visible?
- How long does a transaction take at this line speed?
- Which fault do you have, and what do you change?
- Questions asked
If Modbus_Comm_Load on an S7-1500 CM PtP RS422/485 HF never asserts DONE and the online status reads idle, the instruction has not yet accepted a request. Nothing has reached the port or the drives, so the serial settings and the drive register maps are not where the fault lives yet. DONE is a one-call completion event, not a latched ready bit: the block returns to its idle state after the job finishes, and a block showing the idle status with DONE and ERROR both false has processed no job at all. The corrections, in order of likelihood: put the call on an executing path, issue one fresh REQ edge, make PORT match the hardware identifier of the installed CM PtP port, and hand the Modbus_Master instance data block to MB_DB before any polling. The walkthrough below follows that sequence for a two-wire RS-485 line to drives.
Why does Modbus_Comm_Load stay at 16#7000 and never set DONE? #
16#7000 means the block is idle, not faulted: Modbus_Comm_Load has not yet accepted any request, so the fault sits in the call itself — its execution path, the REQ edge or the PORT value — and not yet on the serial line or in the drives. The TIA Portal documentation defines the instruction as the call that configures a communications module for Modbus RTU, working through an instance data block. Until it processes a job, it has written nothing to the port, so the drives never see traffic and cannot be blamed for the silence.
Distinguish three conditions before you change anything. First, the call never executes because a rung condition, a skipped network or an unreachable program section keeps it out of the scan. Second, the request was accepted and completed, but the one-cycle DONE pulse went unobserved. Third, initialization failed, which always returns ERROR true with a specific diagnostic — never the idle code alone. Each condition has a different correction, and only the third points at the port configuration itself.
Is DONE supposed to stay on after initialization? #
No — DONE is a completion event that is true for the one call in which the block reports the finished job, then it returns to false while STATUS falls back to the idle value, so you must copy it into your own ready flag in that same call. The expectation that DONE should stay on steadily is the most common misreading on this fault, and it fails on other instruction sets too: the S7-1200 G2 shows the same behaviour in why modbus_comm_Load Done stays false on an S7-1200 G2.
A watch table samples the instruction at intervals and can easily miss a pulse that lasts a single call cycle, which makes a working initialization look broken. Latch the outcome in application logic instead: a ready flag set from DONE, an error flag set from ERROR, and a diagnostic word that copies STATUS on every call. Those three tags then tell you which of the three conditions from the previous section you are actually in.
Is PORT 257 the right value for the CM PtP RS422/485 HF? #
PORT must be the hardware identifier of the CM PtP RS422/485 HF port as configured in your project; the value 257 is a plausible example, and if it names a port that is not in the downloaded hardware configuration, the block cannot address any port and stays idle. Read the identifier from your own device configuration rather than from any example project: open the PLC in the device configuration, select the CM PtP module and its port, and take the identifier shown with the port properties, which also appears in the PLC constants tag table.
Two checks settle this input. Compare the online configuration against the offline project, because a module in a different slot or a configuration that was never downloaded leaves the port unaddressable. And confirm the value is a port identifier, not a network address or a number carried over from a different module. When the identifier in the device configuration and the value at PORT disagree, the walkthrough on resolving the CM 1241 RS422/485 hardware identifier in TIA Portal shows where that kind of mismatch usually hides.
Which serial settings must match the Altivar 650 drives? #
Every parameter Modbus_Comm_Load writes to the port has to equal the drive serial-line settings: BAUD 19200 bit/s, PARITY 2 which selects odd parity in the TIA Portal instruction, FLOW_CTRL 0 for no handshake and RESP_TO 1000 ms for the master response timeout. The settings reported on this installation, and what each one does:
- PORT = 257 — the hardware identifier of the CM PtP port in the project
- BAUD = 19200 bit/s — the serial line speed; every drive on the bus must use the same value
- PARITY = 2 — odd parity in the TIA Portal encoding, where 0 is no parity, 1 is even and 2 is odd
- FLOW_CTRL = 0 — no hardware handshake, correct for a plain two-wire RS-485 bus
- RTS_ON_DLY = 0, RTS_OFF_DLY = 0 — RTS timing delays, which only matter once handshake is selected
- RESP_TO = 1000 ms — how long a master job waits for a slave response
Read the parity and line speed in the drives' serial communication settings and set the matching numbers: if the drives run even parity, PARITY must be 1; if they run no parity, 0. Keep one thing straight, though: a wrong line speed or parity does not hold the load block in its idle state. Those mismatches produce their damage after initialization, as timed-out master jobs, so they are your next fault — not your current one.
How do Modbus_Comm_Load and Modbus_Master share the instance DB? #
Modbus_Comm_Load must receive, at MB_DB, the instance data block of the Modbus_Master call that will run the transactions; without that link the master has no relationship to the configured port, and polling stays dead even after a clean initialization. The working layout on an S7-1500 is one Modbus_Comm_Load executed once — typically from the startup OB — and Modbus_Master called cyclically, both built on the same instance data block for that port.
A reference that looks valid but belongs to a different call, or a master instance never associated at all, leaves the master without the configuration relationship it needs, and the symptoms appear on the master side rather than on the load instruction. Verify the association by opening both instance data blocks and confirming that the master instance handed to MB_DB is the one your transactions actually run through.
What call sequence makes DONE and ERROR visible? #
Place Modbus_Comm_Load in a path that keeps executing — the startup OB or an unconditionally true rung — drive REQ with one false-to-true edge, and copy DONE, ERROR and STATUS into your own tags inside the same call, because a watch table can miss a one-cycle pulse. Run this sequence once, in this order:
- Call Modbus_Comm_Load once per scan, from the startup OB or a rung that stays true through the whole initialization.
- Let the call execute at least one cycle with REQ false, then issue exactly one false-to-true transition. Holding REQ true issues nothing new.
- In the same call, copy the outputs into your own tags: a ready flag from DONE, an error flag from ERROR, a diagnostic word from STATUS.
- Gate the REQ input of Modbus_Master on the ready flag, so no transaction can run before initialization completed.
- On an error flag, stop polling, read the captured diagnostic word with the instruction help of your installed TIA Portal version, and correct the named cause before re-running initialization.
- Do not retrigger initialization cyclically during normal polling; keep one explicit retry path after a diagnosed failure, and clear the ready flag whenever a new initialization sequence begins.
Because the drives take their run commands over this serial line, keep an independent local safe-stop path for them, and bring them to a verified safe state before you reconfigure or re-trigger the port that commands them.
How long does a transaction take at this line speed? #
RESP_TO = 1000 ms is not what holds you idle: at 19200 bit/s a Modbus RTU character is 11 bits, so an 8-byte request frame is 8 × 11 = 88 bits = 4.6 ms and a 7-byte response 77 bits = 4.0 ms, both far inside the response-timeout window. The example comes straight from this line: a read of one holding register sends a request of slave address, function code, start address, register count and CRC — 8 bytes. Each RTU character carries 8 data bits plus start, stop and parity, hence 11 bits, and 88 / 19200 bit/s = 4.6 ms on the wire. The response adds a byte count and two data bytes around the same frame shape, 7 bytes, 77 bits, 4.0 ms. The timeout is therefore generous for this line, and nothing in this timing explains an idle block; the wait budget only becomes interesting once polling runs and slaves answer slowly.
Which fault do you have, and what do you change? #
Match what you see to one of four outcomes: an idle status with DONE never pulsing is a call-side fault; a missed pulse is your capture; a completed initialization followed by master timeouts is a serial-settings or wiring fault; a master error with a specific code is an addressing fault. The decisions, case by case:
- The load block holds the idle status and DONE never pulses: the request never arrived. Fix the execution path, issue one fresh REQ edge, and verify PORT against the identifier in your project's device configuration.
- DONE pulsed but you never saw it: the block was fine; latch the completion into a ready flag as in the sequence above and move on to the first transaction.
- Initialization completes, then every master job ends in a timeout with no data: compare the line speed, the parity encoding and the two-wire bus wiring against the drives' serial settings. That case is covered in why MB_MASTER on an S7-1200 returns an error status but no data.
- The master reports 16#8188: register addressing, not initialization — why MB_MASTER on an S7-1200 reports Modbus error 16#8188 walks that fault.
- On a master job, a status of 16#7002 means a transmission is running: polling has begun and initialization is behind you.
Questions asked
Where do I find the hardware identifier for the PORT input?
Open the PLC's device configuration in TIA Portal, select the CM PtP RS422/485 HF and open its port properties; the hardware identifier is shown there and also appears in the PLC constants tag table. Use the number from your own project. It changes with the slot and module, so a value copied from an example can name a port that does not exist in your configuration.
Do I have to keep REQ true for Modbus_Comm_Load to finish?
No. One false-to-true edge issues the configuration job; holding REQ true does not create new jobs and does not keep DONE on. The requirement is that the instruction itself keeps executing at least until it reports DONE or ERROR, so a call that runs only during the REQ pulse can leave you watching an idle status with no completion to catch.
Which PARITY value matches a drive set to even parity?
PARITY 1. The input encodes 0 for no parity, 1 for even parity and 2 for odd parity in the TIA Portal Modbus instructions, so read the parity in the drives' serial communication settings and set the matching number. A mismatch here does not keep the load block idle; it surfaces later as timed-out master jobs that get no slave response.
Can Modbus_Comm_Load be called from the startup OB?
Yes. Calling Modbus_Comm_Load once from the startup OB and Modbus_Master from the cyclic program is the standard layout for a Modbus RTU master on a CM PtP port. Connect the Modbus_Master instance data block to the MB_DB input of the load call, and gate every master request on your own ready flag so polling cannot begin before initialization has completed.