IMDHMIControls LibraryShop main store

Troubleshooting

Why a MicroLogix 1400 needs a power cycle for Modbus TCP

Industrial networks Published 8 min read

Short answer

When a MicroLogix 1400 program with Modbus TCP enabled on channel 1 downloads, the Modbus TCP service does not run until the controller is power-cycled: the user manual documents the cycle-power requirement for the downloaded Ethernet port configuration. If an Ignition Modbus TCP device cycles between Connecting and Disconnected after a correct download, restart the controller once and retest before touching the IP address or port.

On this page
  1. Why does an Ignition Modbus TCP device cycle between Connecting and Disconnected?
  2. Does the MicroLogix 1400 need a power cycle after you download Modbus TCP?
  3. What should you verify in the channel 1 configuration before changing anything?
  4. How do you tell an Ignition problem from a PLC problem?
  5. How do Modbus holding register numbers map to the file you defined?
  6. What is the working procedure from download to a stable connection?
  7. When is the problem not the power cycle?
  8. Questions asked

An Ignition Modbus TCP device that flips between Connecting and Disconnected against a freshly programmed MicroLogix 1400 is almost never an IP address or a wiring fault. The channel 1 Modbus TCP service does not come up on the download alone: the controller needs one power cycle after the program is saved, and the service answers on that restart. Rockwell's MicroLogix 1400 user manual documents the cycle-power requirement for the downloaded Ethernet port configuration, and this failure pattern follows it exactly. Work the checks in order: confirm what the download contained, restart once, prove the path with the native driver and an independent Modbus poll, then map registers. In this failure pattern the fix is one restart, not a new address.

Why does an Ignition Modbus TCP device cycle between Connecting and Disconnected? #

The cycle means the driver's TCP connection attempts reach no Modbus TCP listener at the controller: on a freshly downloaded MicroLogix 1400 the channel 1 service is not running yet, because the download alone does not bring the Modbus TCP service up — a power cycle does.

An Ignition device retries the connection on a fixed cycle, and with nothing accepting on the Modbus port each attempt ends with the status flipping back to Disconnected. That reads like a fault code, but it is an unanswered call, not a rejection: no TCP session means no Modbus transaction, so the register mapping, the unit identifier and the driver's addressing settings never come into play at this stage. It is also why the symptom appears immediately after a download that looks correct on screen, and why editing IP settings cannot fix it — the address was never the problem. The two probes in the next sections show which half of the system is actually silent.

Does the MicroLogix 1400 need a power cycle after you download Modbus TCP? #

Yes: the MicroLogix 1400 user manual, publication 1766-UM001P-EN-P, states that "unlike the serial port configuration, you must cycle power to the controller after you download the Ethernet port configuration", and the channel 1 Modbus TCP service follows that rule in practice.

The manual makes that statement in its Ethernet chapter, naming the DNP3 over IP service as the case it documents; the mechanism is the same for Modbus TCP configured on the same channel — the download writes the configuration, and the restart is what starts the service listening. A value you can read back in the programming software proves what was saved, not what is running. This is the same pattern as an ATV71 on PROFIBUS that needs a power cycle to initialize: a correctly downloaded configuration that simply does not run until the next power-up.

One operational note: a power cycle drops the controller's outputs and every connection through it, so schedule the restart with the machine in a safe state and under your site's restart procedure. Not every platform behaves this way — on larger systems, which DeltaV changes can be downloaded while running is its own question with its own rules — but on this controller, treat download-then-restart as one operation.

What should you verify in the channel 1 configuration before changing anything? #

Check three things in the controller's Ethernet channel configuration before you touch the network: the IP address the SCADA driver will dial, Modbus TCP enabled with a holding-register file defined, and the Modbus TCP port, 502 unless someone moved it on either side.

All three live where you enabled Modbus: the Modbus TCP settings in the channel 1 configuration define the file that serves as holding registers and the port the controller listens on. If the native driver test in the next section connects at the configured address, leave that address alone — changing it to see whether it helps destroys the one clean data point you have. The port needs attention only if either side has been moved, because controller and driver must carry the same number. If any of the three is wrong, correct it, download again, and apply the restart from the previous section: a corrected download does not take effect on its own either.

How do you tell an Ignition problem from a PLC problem? #

Split the path with two probes: if the MicroLogix driver in Ignition connects at the same IP with Modbus disabled, the address and cabling are proven good, and an independent Modbus master poll then shows whether the controller's Modbus service or the SCADA side is at fault.

The native MicroLogix driver speaks the controller's own protocol, not Modbus, so its success says nothing about the Modbus service — but it clears the IP address, the subnet path and the physical link. That native path has failure modes of its own; a MicroLogix 1400 connection that fails from a new SCADA server usually comes down to which protocol the driver speaks, which is exactly why these two tests must stay separate. Next, run an independent Modbus master tool from a PC: enter the controller's IP address and the Modbus port, and read the first register of the holding-register file. The result sorts every remaining case:

  • The poll fails as well: the controller's Modbus TCP service is still not answering. Re-check the channel configuration, download again, and restart once more before touching the SCADA software.
  • The poll succeeds but Ignition still cycles: the controller side is proven, so compare the Ignition device's address and port against the poll tool that worked.
  • The poll connects but the register read fails: the connection layer is done — go to the register mapping below.

How do Modbus holding register numbers map to the file you defined? #

Modbus holding register 40001 reads the first element of the file you defined, so with a file beginning at N7:0 the mapping is 40001 to N7:0 and 40011 to N7:10, and the arithmetic is one-based number minus 40001.

Worked example: say the Modbus TCP configuration serves holding registers from integer file N7, first element N7:0. A tag set to holding register 40011 resolves as 40011 - 40001 = 10, so the read returns the value held in N7:10. The same register appears as plain address 10 in a driver that counts from zero, because 10 + 40001 = 40011, so confirm which convention your driver uses before you call a value wrong. A read that fails after the device is already connected is a mapping fault, not the restart problem: if the driver asks for a register past the end of the file you defined — for example N7:200 when the file ends at N7:99 — there is nothing to serve, and a Modbus exception on an established connection is that signature. The same family of fault shows up as Modbus error 8189 that clears when 400001 is added to the register address.

What is the working procedure from download to a stable connection? #

The sequence that works is: enter the Modbus TCP configuration and the holding-register file, confirm the address against the driver, download to the controller, power-cycle once, and only then judge the connection.

  1. In the controller's channel 1 Ethernet configuration, enable Modbus TCP, define the file that serves as holding registers, and leave the Modbus port at 502 unless the network plan says otherwise.
  2. Confirm the channel's IP address matches the address entered for the Modbus TCP device in the SCADA software.
  3. Download the program to the controller.
  4. Power-cycle the controller once so the downloaded Ethernet configuration takes effect.
  5. Check the SCADA device entry: the controller's IP address and the same Modbus port.
  6. Wait for the status to settle on Connected, then read the first register of the holding-register file and compare it against a known value in the controller program.

If all six pass, stop editing: leave the address and port as they are and verify the remaining tags one by one through the mapping rules above.

When is the problem not the power cycle? #

If the controller has restarted since the download and the device still flips status, the restart is ruled out: work the independent poll next, then the register mapping, and only after those the driver configuration.

The decisions, in the order the tests hand them to you:

  • Restart done, independent poll also fails: the service is still silent. Re-open the channel configuration, confirm Modbus TCP is enabled and the port is as expected, download again, restart once more, and retest before touching the SCADA software.
  • Restart done, poll succeeds, Ignition still cycles: the fault is in the device entry. Compare its address and port against the poll tool that worked, and check the driver's register convention before blaming the network.
  • Both connect but a value is wrong: apply the mapping arithmetic above; this is a register fault, not a connection fault.
  • The native MicroLogix driver also fails at the same IP: fix the path first — link, switch port, subnet — because no Modbus test means anything until the address answers. Driver-side settings produce the same status flags on other controllers too; an Ignition S7-400 device stuck disconnected by a CPU slot setting is that pattern, which is why the device entry gets compared field by field.
  • Everything above checks out and both clients still fail after a verified restart: capture the poll results and the device configuration and take them to the vendor's support channel. At that point the evidence moves the fault, not another setting change.

Questions asked

How often does the Modbus TCP restart apply on a MicroLogix 1400?

Only after a download that changes the channel 1 Ethernet configuration. The setting then persists through normal power loss, so in daily operation you restart once per change, not per shift. Downloading an unchanged program does not disturb the running service, and no restart is needed.

Which port does the Ignition Modbus TCP device use to reach the MicroLogix 1400?

Modbus TCP's standard transport port is 502, and the controller's configuration defaults there, so a plain setup matches without edits. If either side was moved to another port, the device cycles Connecting and Disconnected exactly as it does when no service is listening, so compare the number on both ends.

The device connects but a read returns an exception. Is that still the power-cycle problem?

No. A connected status proves the Modbus TCP service is running; an exception on a read means the register you requested falls outside the holding-register file defined in the controller. Either widen the file in the channel configuration, download and restart, or point the tag at a register the file already covers.

Does the DNP3 over IP service on the MicroLogix 1400 need the same restart?

Yes — that is the service the manual's sentence names. The manual requires the power cycle after downloading the Ethernet port configuration so DNP3 over IP is enabled, on the same channel 1 where Modbus TCP runs. Treat both services the same way: download, restart once, then test.

Keep reading

  • How-to

    Connecting third-party Modbus TCP devices to a Modicon MC80

    Yes. A Modicon MC80 under Control Expert Classic exchanges data with any third-party Modbus TCP device through explicit READ_VAR and WRITE_VAR calls plus the device's register map — there is no ESD or EDS import, no IO Scanning and no DTM support. Run the MC80 as the TCP client, keep the exchange in the coil and holding-register tables, and latch each result in the reader so a 16 ms update survives a slower PLC poll.

    Industrial networks

  • How-to

    Setting up a CODESYS Modbus TCP client to talk through a gateway

    In CODESYS, Modbus TCP is an application library, not a fieldbus add-on: reference the Modbus TCP Client SL library, point the client at the gateway's IP on port 502 with the gateway's unit ID, and split the map into contiguous blocks of at most 125 registers per request. Every value is a cached copy whose worst-case age is the gateway poll cycle plus your client's map refresh time, so budget both against the freshness the process needs.

    Industrial networks

  • Troubleshooting

    Why a CODESYS Modbus master gives error 150 or 153

    Error 150 means the master never opened the TCP connection to the slave; error 153 means it sent the request and no reply came back in time. Work the path in order: rebuild the library on a compiler it supports, confirm the slave speaks the transport you selected, then scope the firewall rule to the runtime executable and prove the exchange at a packet capture.

    Industrial networks