IMDHMIControls LibraryShop main store

Selection guide

Connecting a CompactLogix to a Mitsubishi A2ACPU over Modbus

Industrial networks Published 9 min read

Short answer

Drop the RS-232/RS-485 converter plan: it converts electricity, not protocol, and the CompactLogix DB9 port speaks DF1. Put a DF1-to-Modbus RTU gateway such as the Digi One IAP between the two PLCs, wire RS-485 from it to the A2ACPU's Modbus slave module, and confirm that module's documented register map before configuring the CompactLogix messages.

On this page
  1. Does the CompactLogix serial port speak Modbus RTU natively?
  2. Will an RS-232 to RS-485 converter alone make this link work?
  3. Which device translates DF1 to Modbus RTU?
  4. Gateway or ladder library: which path should I choose?
  5. How do I wire the gateway between the two PLCs?
  6. What must the A2ACPU side provide to answer Modbus?
  7. How do I map A2ACPU data into Modbus registers?
  8. How fast will reads and writes cross this link?
  9. What is the final architecture to order and commission?
  10. Questions asked

Put a DF1-to-Modbus RTU protocol gateway between the two controllers and take the RS-232/RS-485 converter out of the plan: it converts only the electrical layer, while the 1769-L35E serial port transmits DF1 and the A2ACPU end must receive Modbus RTU. A gateway of the Digi One IAP type maps the CompactLogix's DF1 message requests into Modbus RTU requests and performs the RS-232 to RS-485 conversion in the same box. On the CompactLogix side the work is ordinary MSG instructions; the Ethernet port stays free for programming and SCADA. The one item you must settle at the Mitsubishi panel is which communication module in front of the A2ACPU documents Modbus RTU slave service and its register map, because the A2ACPU programming port does not provide it.

Does the CompactLogix serial port speak Modbus RTU natively? #

No. The 1769-L35E and the other DB9-equipped CompactLogix models run DF1 on that port; native Modbus RTU on a serial channel is a MicroLogix capability, which is why this link needs either a gateway or a Modbus ladder library.

The 1769 CompactLogix user manual treats the serial port as a DF1 device: full-duplex DF1 is the typical mode for programming through that port, and DF1 master mode controls polling and message transmission between master and slave. No Modbus mode exists in that channel's configuration.

The vendor's documented route to Modbus on these controllers, per the CompactLogix selection guide, is to connect through the serial port and execute a specific ladder-logic routine from a published example project — the library option compared below. A MicroLogix needs none of it: configuring a MicroLogix 1100 Channel 0 for Modbus RTU is a settings job rather than a programming job, which is why small applications reach for one.

These DB9-serial CompactLogix controllers are discontinued, so match revisions across spares and sister panels: 1769-L30 firmware ended at final release v13 on that sibling line, and firmware gaps between controllers change what the messaging supports.

No. That converter changes only the electrical layer — the 1769-L35E serial port still transmits DF1 frames and the A2ACPU side still expects Modbus RTU frames, so the two controllers never exchange a single readable register through it.

The converter turns single-ended RS-232 levels into differential RS-485 levels, and that is all it does. Framing, slave addressing, function codes and error checking all sit above the electrical layer, and DF1 and Modbus RTU differ in every one of them. A converter of this class earns its place only when both endpoints already speak the same protocol at different electrical levels — two Modbus RTU devices, for example. That is not this link, so the standalone converter is not the interface between these two controllers.

Which device translates DF1 to Modbus RTU? #

A serial protocol gateway — the documented choice here is the Digi One IAP — which maps the CompactLogix's DF1 message requests into Modbus RTU requests and converts RS-232 to RS-485 in the same box.

The gateway application note for ControlLogix describes exactly this pattern: a standard MSG block in the controller program remotely reads and writes Modbus slaves through the Digi One IAP. In operation the gateway is the DF1 slave the CompactLogix addresses and the Modbus master the Mitsubishi side sees, with an address-translation table you configure so each Modbus register block appears to the MSG instruction as ordinary remote controller data. The ladder stays standard message code, portable to any Logix controller with a serial port.

Gateway or ladder library: which path should I choose? #

The gateway, for this retrofit: it needs no ladder library, leaves the serial port free of custom code, and the same box does the electrical conversion, while the library route puts a complex routine in the controller and still requires a converter.

Path Protocol work Electrical work Verdict for this link
Digi One IAP class gateway Maps DF1 requests into Modbus RTU RS-232 to RS-485 built in Choose: one box, standard MSG, no added ladder
CompactLogix Modbus ladder library Ladder routine drives Modbus RTU out of the serial port None; converter still required Only if no gateway is permitted and the setup effort is accepted
Standalone RS-232/RS-485 converter None RS-232 to RS-485 only Reject: translates no protocol
Modbus communication module in the A-series rack Serves Modbus RTU slave directly from the rack Depends on the module Needed at the Mitsubishi end unless the fitted module already does this

The library path is real and vendor-documented, and it removes a box from the cabinet. Its costs: a routine to maintain in the controller, the loss of DF1 service on that serial port (programming moves to Ethernet), and it still needs the electrical conversion the gateway would have supplied. For a two-controller retrofit, order the gateway.

How do I wire the gateway between the two PLCs? #

Run RS-232 from the CompactLogix DB9 to the gateway's DF1 port, and RS-485 from the gateway to the Mitsubishi slave interface; keep the RS-232 run under 15 m and the RS-485 run under 1200 m.

The standards set those numbers. TIA/EIA-232 bases its limit on load capacitance and gives a 15 m (50 ft) reference at its rated load, so treat the controller-to-gateway hop as in-cabinet or adjacent-cabinet wiring. TIA/EIA-485-A allows up to 1200 m (about 4000 ft) at low baud rates, which covers any realistic run to the Mitsubishi panel.

  • Wire both sides to the pinouts in the gateway's hardware manual; the RS-232 and RS-485 connections are not interchangeable.
  • Terminate the RS-485 pair with 120 ohms at both ends, and set fail-safe biasing as the slave interface manual directs.
  • Ground the cable shield at one end only.
  • Match baud, data bits, parity and stop bits on every device on the RS-485 pair; one mismatched device stalls the whole bus. One common Modbus RTU set is 19200 baud, 8 data bits, even parity, 1 stop bit.

Mount the gateway in or beside the CompactLogix cabinet: the short hop rides RS-232, the long run rides the standard built for it, and the L35E Ethernet port stays free for programming and SCADA.

What must the A2ACPU side provide to answer Modbus? #

A Modbus RTU slave interface in front of the CPU — either a communication module in the A-series base that documents slave service with a register map, or a protocol converter at that panel — because the A2ACPU programming port is not one.

The programming port serves Mitsubishi programming and protocol functions; nothing documents it as answering Modbus function codes. The Modbus service must come from hardware built for it:

  • A communication module in the A-series base whose documentation states Modbus RTU slave operation and publishes the register map. Third-party Modbus serial modules in this class exist for Mitsubishi platforms, with an application port configurable as master or slave; the classic A-series computer-link modules do not qualify, since they document Mitsubishi computer-link protocol.
  • A protocol converter at the Mitsubishi panel that accepts Modbus RTU and speaks the A-series protocol toward the CPU.

Prefer the module: one conversion stack is enough. The committed step before any purchase: open the rack, read the exact communication module part number fitted beside the A2ACPU, and confirm Modbus RTU slave service and a register map in that module's manual. That part number decides whether this is a gateway-only project or a module-and-gateway project.

How do I map A2ACPU data into Modbus registers? #

Take the mapping from the slave interface's documentation, never from the PLC address: the module's manual defines which Modbus register numbers expose which A2ACPU devices, and that table is the only authority.

The two numbering systems have no documented relationship, so deriving one from the other produces silently wrong data, not an error. Build the map first, then size the messages to it:

Modbus address Function A2ACPU device Data type Engineering unit
40001 — template row, not a real mapping 03 read data register, example 16-bit integer deg C

Keep each MSG read inside one contiguous documented block: a read that crosses a register map gap comes back as exception 02 instead of data, and on a serial link you want one message per block, not a retry loop.

About 33 ms per 10-register read at 19200 baud with even parity — call it 30 transactions per second polled flat out, and less once gateway translation and controller scan time take their share.

Worked example, assumptions stated: 19200 bps, RTU framing with even parity (1 start + 8 data + 1 parity + 1 stop = 11 bits per character), one read of 10 holding registers with function 03, and an assumed 10 ms combined turnaround in the gateway and the slave interface.

  • Character time: 19200 bps ÷ 11 bits = 1745 characters per second, so one character takes 1000 ms ÷ 1745 = 0.573 ms.
  • Request frame: 1 address + 1 function + 2 start + 2 quantity + 2 CRC = 8 characters × 0.573 ms = 4.58 ms.
  • Response frame: 1 address + 1 function + 1 byte count + 20 data + 2 CRC = 25 characters × 0.573 ms = 14.32 ms.
  • Inter-frame silence: 3.5 character times at each edge of the exchange, 7 character times total = 4.01 ms.
  • Turnaround: 10 ms assumed.
  • Exchange time: 4.58 + 14.32 + 4.01 + 10 = 32.91 ms, so 1000 ÷ 32.91 = 30 transactions per second at full rate.

At 9600 bps the wire time doubles to 45.83 ms and the same exchange lands at 55.83 ms. One serial port runs one transaction at a time, so added slaves and bigger queues divide that budget — the same arithmetic is why Modbus RTU polling on one serial port is slow as the slave count grows. Set the MSG trigger timer to the update rate the process needs, not the fastest the port can do.

What is the final architecture to order and commission? #

One Digi One IAP class DF1-to-Modbus RTU gateway wired RS-232 to the 1769-L35E serial port and RS-485 to the A2ACPU's Modbus slave module, with the standalone converter off the bill of material and writes commissioned only after reads.

  1. Record the A2ACPU communication module part number; confirm Modbus RTU slave service and the register map in its manual.
  2. Configure the gateway: DF1 settings to match the CompactLogix channel, Modbus RTU settings to match the slave, address mapping built from the documented register map.
  3. Wire the RS-232 hop and the terminated RS-485 run; verify settings match on every RS-485 device.
  4. Bring up reads first: one MSG, one known register, value cross-checked at the A2ACPU.
  5. Prove writes last, on a scratch register nothing else uses.

Safety: a Modbus write into A2ACPU memory that drives outputs can start real loads — prove writes with the machine in a safe state and apply the discipline behind safe Modbus writes to PLC output registers before any production write. Then file the gateway configuration and register map with the panel documentation.

Questions asked

Can I use the 1769-L35E Ethernet port instead of its serial port for this link?

You can, but not with the DF1 mapping described here, which is defined out of the serial port. Keeping the link on serial leaves the L35E's single Ethernet port free for programming and any SCADA client, which is why it is the better default. If the serial port is already spoken for, an EtherNet/IP-to-Modbus RTU gateway is the equivalent architecture on the Ethernet side, with the CompactLogix issuing CIP messages instead of DF1.

How many Modbus slaves can share the RS-485 side of the gateway?

Modbus RTU addresses slaves 1 through 247, so that many devices can share one RS-485 pair in principle. Every added slave needs a unique address and identical serial settings, and each one divides the single-transaction-at-a-time budget of the port, so your required update rate sets the practical limit long before the address space does.

Do the serial settings have to match on both sides of the gateway?

No, and they usually should not match. The gateway buffers complete frames, so its DF1 side runs whatever the CompactLogix channel uses and its Modbus side runs whatever every RS-485 slave uses. Each side must be internally consistent, but the two sides can sit at different baud rates, which is useful when a legacy slave tops out at 9600 while the controller link runs faster.

What does the CompactLogix MSG instruction actually address through the gateway?

Ordinary remote-controller addresses. The gateway's configuration maps each Modbus register block of the slave into a DF1 address range, and the MSG instruction reads or writes that range like any remote data table. The mapping table you build in the gateway is the single source of truth for the MSG setup, and it belongs in the panel documentation next to the register map.

What is the first sign the Mitsubishi side is not a Modbus slave?

Silence, not an error code. A non-Modbus interface does not answer Modbus frames at all, so the MSG times out on every request while the wiring and settings check out. An exception code back means the slave heard you and refused something specific; a clean timeout means nothing on that wire is speaking Modbus, which points at the interface, not the cable.

Keep reading

  • Selection guide

    Choosing a CP-341 or gateway for an S7-300 Modbus RTU slave

    For an S7-300 that must answer as a Modbus RTU slave, a PROFIBUS DP-to-Modbus RTU gateway is the lower-effort route: no separately licensed loadable driver and no serial code in the CPU. Choose the CP-341 with its Modbus Slave (RTU) driver only when the link must be independent of the fieldbus or when you need a per-write flag such as CP_NDR. Before ordering, confirm the exact gateway variant runs DP slave and Modbus RTU slave simultaneously.

    Industrial networks

  • How-to

    Configure MicroLogix 1100 Channel 0 for Modbus RTU

    On the tested MicroLogix 1100 (1763-L16BBB rev. B), Channel 0 is a serial port with a selectable driver — DF1, Modbus RTU Slave or Modbus RTU Master — set in RSLogix Micro under Channel Configuration while Channel 1 keeps carrying Ethernet. Slave mode creates the data files, binary for coils and contacts and integer for input and holding registers; master mode runs MSG instructions against the stations you poll.

    Industrial networks

  • Selection guide

    Connecting ControlLogix to RS232 and RS485 serial devices

    Convert the RS232 devices to RS485 at the electrical layer, then pick one master for the whole pair: 1734 ASCII modules for fixed-length or delimited frames, an in-chassis Modbus RTU module for a pure Modbus bus, or an EtherNet/IP-to-serial gateway with a protocol builder when variable-length checksummed frames share the wire with Modbus RTU. One master serializes every transaction behind the 3.5-character silent gap, 3.65 ms at 9600 baud.

    Industrial networks