IMDHMIControls LibraryShop main store

Troubleshooting

PLC IDE download stuck waiting for target to reboot after Modbus

Industrial networks Published 7 min read

Short answer

The freeze starts the moment the RS-485 channel switches from disabled to enabled at the end of the download, so treat it as a conflict on the programming connection rather than a Modbus failure. Recover with one press of the reset button, then split the fault with three staged downloads: ladder only, channel only, channel plus block. Match the register addressing only after the download path is stable.

On this page
  1. Why does the download hang only when the Modbus block is added?
  2. Does enabling the RS-485 channel disconnect the USB programming port?
  3. How do you tell a dead controller from a lost IDE connection?
  4. What order do you test downloads in to find the breaking change?
  5. How do you get back online after the IDE freezes?
  6. Does the write to register 42331 have anything to do with the stall?
  7. What do you check once the download completes every time?
  8. Questions asked

Treat this as a programming-path fault, not a Modbus failure. The code transfer finishes, the IDE asks the controller to restart, the RS-485 channel switches from disabled to enabled at that same moment, and the IDE never sees the controller come back. A simple ladder downloads without trouble, and one press of the controller's reset (RST) button puts the IDE back online, which tells you the runtime restarted with the new program intact. Work the fault as a port conflict first: find out what the USB programming connection shares with the RS-485 channel, then prove it with three staged downloads of simple ladder, channel only, and channel plus the sysMbMRtu_FC06 block in MB_Task. The write to register 42331 matters only after the download path is stable.

Why does the download hang only when the Modbus block is added? #

Because the breaking change is the channel, not the block: the freeze begins on the download that switches the RS-485 channel from disabled to enabled, and the code transfer has already completed by then.

Two connections are in play and they fail separately. The first is the programming connection between the IDE and the controller; the second is the serial link between the controller and the VFD. The 'Waiting for target to reboot' message belongs entirely to the first. Nothing has been written to the drive yet, because the program that would write it has not been confirmed running.

Your own tests point at the port, not the protocol. The simple ladder downloads, so the IDE, the cable and the runtime are healthy. The freeze appears when the added configuration enables a second communications function on the same controller, and it appears at the exact step where the controller restarts and re-enumerates its interfaces. That is the signature of a programming connection that does not survive a port reconfiguration, not of a bad register write, which cannot happen yet.

Does enabling the RS-485 channel disconnect the USB programming port? #

On controllers whose RS-485 channel shares pins or a peripheral with the USB programming interface, yes. Enabling RS-485 takes those pins away from USB and the IDE's session dies with the restart.

Whether the pins are shared is a property of your exact controller, so the pinout table in its own documentation is the authority; do not settle for a guessed pinout. You do not need the pinout to act, though. The observed sequence, link alive with the channel disabled and link dead the instant the channel enables, is enough to justify moving the download to a path the RS-485 channel cannot touch.

Use the Ethernet programming connection for that, with its address configured and nothing else changed. If the same project, channel enabled and block included, downloads and restarts over Ethernet, you have your answer for practical purposes: the USB path and the RS-485 channel conflict on this hardware, and the pinout check becomes documentation rather than diagnosis. From then on, download over Ethernet, or leave the channel disabled during the download and enable it afterwards.

How do you tell a dead controller from a lost IDE connection? #

Watch the controller's status indicators during the wait: if they cycle through the restart sequence and the controller returns to run, the IDE simply has no path left; if they never restart, the fault is in startup.

The reset test already answered part of this. Pressing RST once and reconnecting restores the IDE session, so the controller is alive, its firmware boots, and the stored program is intact. A controller that hard-faults on startup does not come back because you pressed reset and reopened the IDE.

Use time as the discriminator. A restart completes in seconds, so a wait that stretches into minutes means the IDE has lost its path, not that the controller is slow to boot. Indicators that cycle and then hold a steady run state mean the machine is up and only the programming link is gone; indicators that never settle mean the startup itself is failing, and the channel configuration or the block is the suspect rather than the port.

What order do you test downloads in to find the breaking change? #

Run three downloads in this order and the fault has nowhere to hide: the simple ladder alone, the RS-485 channel enabled with no Modbus block, then the channel plus sysMbMRtu_FC06 in MB_Task.

Every download in this sequence restarts the controller and re-initializes its outputs, and the background task issues its first write to the VFD as soon as the controller runs, so inhibit the drive or isolate the machine before you start.

  1. Save a known-good copy of the project, then download the simple ladder on its own and confirm the controller restarts and the IDE comes back online. This is your proven-good baseline.
  2. Add the RS-485 channel to the project but leave it disabled, and download. This should behave like step 1; a failure here means the problem is not the enable at all.
  3. Enable the channel and download. If the freeze starts at this step, the enable-and-restart interaction is the fault and the Modbus block is innocent.
  4. Add MB_Task with sysMbMRtu_FC06 and its documented inputs, and download. If step 3 passed and this hangs, the fault is in the block's startup, not the shared port.
  5. Repeat the failing download over Ethernet with nothing else changed. A pass over Ethernet convicts the USB path; a fail over Ethernet convicts the program.
Result of the staged downloads Conclusion Action
Hangs at step 3, passes over Ethernet The USB programming path conflicts with the RS-485 enable Download over Ethernet, or enable the channel after the download
Hangs at step 3, also over Ethernet The channel enable breaks startup Check the channel's mode and settings against the controller's serial documentation
Passes to step 4, then hangs The block's startup is the fault Verify the block's inputs and how MB_Task calls it
Passes every step The fault was the one-off combination Re-test the original project once, then return the machine to service

How do you get back online after the IDE freezes? #

Press the controller's reset (RST) button once, let the restart finish, and reconnect from the IDE. The session returns because the code transfer completed before the wait ever started.

The documented recovery for this controller class is exactly that: restart the target with one press of the reset button, then repeat the connection procedure. In the IDE, run Refresh current target so it recognizes the device again before you reconnect, because a stale device entry can masquerade as a controller that never came back. What the reset does not tell you is which layer failed; it only proves the controller is running the stored project.

Does the write to register 42331 have anything to do with the stall? #

No. Function code 06 writes exactly one holding register, and that transaction runs only after the controller is executing, so a bad address shows up as a drive exception or an unchanged speed, never as a reboot stall.

The Modbus application protocol defines function 06 as a single-register write: the request carries one register address and one 16-bit value, and the reply echoes both back. That is all sysMbMRtu_FC06 does, and only once the background task is running.

Run the address arithmetic anyway, because it is the check that bites later. The configured destination, 42331, uses the 4x holding-register convention: the leading 4 names the register table and 2331 is the register number. The address on the wire is one less: 2331 − 1 = 2330, which is 091A in hex. The full 4x number and the wire address always differ by 40001, and you can check it on this register: 42331 − 2330 = 40001. So read the block's description to learn which convention its address input expects. If it wants the wire address, the number you type is 2330; typing 2331 writes one register too high, and typing 42331 as a raw address writes 40001 registers away from the VFD's speed input.

What do you check once the download completes every time? #

Move to the serial transaction: match baud rate, parity and stop bits and the VFD's station address on both ends, then run one triggered write to 42331 and read the block's completion and error indications.

Do not leave an unconditional, repeatedly fired write as the diagnostic, because a request that executes every scan tells you nothing about one transaction's result. Keep the block in its documented background-program home; that is how its execution is meant to be serviced.

Two notes for the steps after this one. If the drive's speed reference spans two registers, one function 06 write cannot set it; that needs a multi-register write such as function 16. And if the application grows into cyclic polling of several drive registers over the single serial port, start from why Modbus RTU drive polling on one serial port is slow before you size the cycle. For the related in-scan stall on Logix controllers, a request that stays enabled and never completes while the program runs, the diagnosis is in resolving an MSG instruction stuck in Active Waiting with a stalled enable bit.

Questions asked

How long should you wait at 'Waiting for target to reboot' before pressing reset?

Not long. The restart itself takes seconds, and in the case that matches yours the IDE was still frozen after about 10 minutes of waiting. Give it one or two minutes while you watch the status indicators, then press the reset button once and reconnect.

Will pressing reset erase the downloaded program?

No. The code transfer finishes before the IDE starts waiting, so the reset restarts the runtime with your new project already stored. One consequence to expect: a download that follows an offline project rebuild performs a cold restart, and non-retentive values are initialized, so variables that are not retentive come back at their initial values.

Why does the IDE wait for a reboot after a download at all?

Because the download replaces the running project, and the runtime has to restart to load the new one. The IDE asks the controller to restart, then waits to see it again on the programming connection. If the download itself broke that connection, the wait never ends, which is why this looks like a reboot fault but behaves like a connection fault.

What if the download still hangs over Ethernet?

Then the port-sharing question is closed and the fault is in startup. Split the next downloads: channel enabled with no Modbus block, then channel plus block. A hang on the channel-only version means the enable itself breaks startup; a hang only with the block points at its inputs and how MB_Task calls it. Run Refresh current target first so the IDE confirms the device before you connect.

Does the block have to stay in the background program?

Yes. The block's own description calls for a background program such as MB_Task, so keep it there. During the isolation tests, remove or disable the block rather than moving it into the main task. A change of task is a second variable, and it blurs which change actually broke the download.

Keep reading

  • Explainer

    Can a Modbus write change PLC outputs?

    Yes, but not by outrunning the scan. On a Modicon CPU the communication interface reaches data memory only between scans, so a write is applied whole and the next scan either consumes it or overwrites it. The real exposure is that Modbus TCP authenticates nothing: any host that can reach the CPU can write an unprotected holding register your logic unpacks into outputs, so pack status into read-only words, keep commands in a separate writable range, and enforce write protection with an IP access control list.

    Industrial networks

  • Troubleshooting

    Modbus exception 02 when a read crosses a register map gap

    The exception is correct: a Modbus block read requests consecutive registers, so a span from 754 through 788 includes the undefined 764-767 gap and the meter rejects it with exception 02, illegal data address. Read the 754-763 setup block at startup and after configuration changes, keep continuous reads inside the 768+ measurement area, and publish the last fully accepted set to your calculation logic.

    Industrial networks

  • Troubleshooting

    Reading Modbus TCP from a ControlLogix PLC without a gateway

    Yes — ControlLogix reads Modbus TCP without a gateway card through Rockwell's sample Modbus TCP driver, but only on controller firmware version 20 or later with socket-capable Ethernet hardware such as a 1756-EN2xx module at firmware 5.007 or later. If either side misses the gate, use a standalone EtherNet/IP to Modbus TCP converter. When the driver runs, prove one request against a known-good PC client and match unit ID, start address and count field by field.

    Industrial networks