How-to
SLC 5/05 to Modbus RTU drives through a protocol gateway
Short answer
The SLC 5/05 speaks neither Modbus TCP nor Modbus RTU, so put a protocol-aware gateway that translates A-B Ethernet (TCP port 2222) to Modbus RTU between the PLC and the drives. Configure the MSG as target device 500CPU, Local/Remote Remote, MultiHop No, with the drive node in Remote Station Address and 0 in both bridge fields.

On this page
The SLC 5/05 cannot originate Modbus TCP from its Ethernet port or Modbus RTU from its serial port, so the fix is a dual-protocol gateway between them: configure the MSG as a Peer-to-Peer Read or Write with Target Device 500CPU, Local/Remote Remote, and MultiHop No, point it at the gateway's IP address, put the drive's Modbus node number in Remote Station Address, and leave Remote Bridge Address and Remote Bridge Link ID at 0. A serial server that only carries raw bytes will not work, because the SLC never sends a Modbus frame for it to forward. The steps below walk the full path from gateway setup to reading one drive, then adding the rest.
Confirm what each device can speak #
The SLC 5/05's Ethernet channel supports the Allen-Bradley Ethernet protocols, not Modbus TCP, and its serial channel is a DF1/programming port. The drives are Modbus RTU slaves on RS-485. That leaves translation as the only bridge, and the translator must understand both sides:
| Device | Role | What it must support |
|---|---|---|
| SLC 5/05 | Issues SLC Typed Read/Write | A-B Ethernet with MultiHop off |
| Protocol gateway | Translates A-B Ethernet to Modbus RTU | Network master A-B Ethernet on TCP port 2222; serial port Modbus RTU |
| Drives | Modbus RTU slaves | RS-485, matching node numbers, baud, parity and stop bits |
This is the distinction the first purchase usually gets wrong. Byte transport, Modbus TCP termination, and A-B-to-Modbus translation are three separate capabilities; a device can have one without the others. Before wiring anything, confirm in the gateway's documentation that it lists A-B Ethernet (SLC typed messages) as a network master protocol and Modbus RTU as a serial protocol. If it only tunnels serial bytes over Ethernet, it cannot serve an SLC 5/05 at all, and the honest recommendation to the owner is to replace it with a real translator rather than spend a week proving it.
Configure the gateway #
Run the gateway's setup wizard rather than configuring fields by hand, and use the vendor's address-conversion spreadsheet for the SLC-to-Modbus memory map. Hand-deriving the location mapping almost never lines up; the spreadsheet exists for exactly this step.
Set the network side as the A-B Ethernet master connecting to the SLC on TCP port 2222. Set the serial port for Modbus RTU with the drive network's parameters: for example 19200 baud, 8 data bits, even parity, 1 stop bit, a 20 ms character timeout, a 1 second slave timeout, a 2500 ms message timeout, and broadcast disabled. Use the drive's own documentation for its serial settings; a mismatch of parity or stop bits gives silent timeouts.
Give the gateway an IP address on the same subnet as the SLC channel 1, for example 192.168.1.50 with mask 255.255.255.0, and set the SLC channel 1 address in the same range. Check the gateway's default-router field separately; a partially entered network configuration is a common reason the first MSG times out.
Set up the MSG instruction #
In RSLogix 500, configure the MSG as a Peer-to-Peer Read (then a Write where the application needs it) with these setup screen fields:
| Field | Setting | Why |
|---|---|---|
| Read/Write | Read | Selects the data operation |
| Target Device | 500CPU | Creates the SLC Typed Read/Write the gateway translates |
| Local/Remote | Remote | Exposes the remote routing fields |
| MultiHop | No | Uses the older A-B Ethernet protocol, not CIP routing |
| Ethernet IP address | The gateway's address | Selects the translator, not a drive |
| Remote Bridge Address | 0 | Routing field the translation setup uses at 0 |
| Remote Station Address | The drive's Modbus node, for example 1 | Selects the downstream Modbus slave |
| Remote Bridge Link ID | 0 | Routing field the translation setup uses at 0 |
The node number lives only in Remote Station Address. Do not append it to the gateway IP address or write it into the first byte of the control block; the gateway reads the remote station field and puts it into the Modbus slave address of the request it sends.
Worked example: read one register from drive node 1 #
Take the gateway at 192.168.1.50 and a drive at node 1, reading a measured value held in a Modbus input register. Suppose the drive documentation places that value at input register 3207, function code 4. Using the gateway's conversion spreadsheet, that Modbus function and address map to a target address in the SLC data table; treat the spreadsheet's output as the mapping, not a hand calculation. For this example, suppose the spreadsheet produces N42:6.
Configure the MSG as: Read, Target Device 500CPU, Local/Remote Remote, MultiHop No, Ethernet IP address 192.168.1.50, Remote Bridge Address 0, Remote Station Address 1, Remote Bridge Link ID 0. On the message setup page, use the local data table address N42:6, 1 element, channel 1, a control block such as N16:0, and the message timeout the setup screen defaults to for your scan. Fire the rung once and check the done bit; N42:6 should now hold the 16-bit word the drive reports for that register. These control-block addresses are commissioning-specific example values, not requirements — pick free files in your own data table.
Check the byte layout before trusting the data #
Both the SLC data table and the drive registers carry 16-bit words, but drive data definitions do not always pack into whole PLC words: some values split so the lower byte of one PLC word is actually the high byte of the next value. A done bit with plausible-looking numbers is not proof of correct layout.
Capture the raw returned words, compare their bytes byte-for-byte against the drive's documented register map, and only then write the extraction logic — a masked move for a high byte, a swap-and-combine for split values. If a later drive or firmware revision changes the map, the extraction breaks, so keep the byte handling in one clearly commented routine rather than scattering masked moves through the program.
Verify layer by layer #
Work up the stack instead of testing everything at once. The point of the ladder is to isolate which layer breaks when the MSG errors out.
- Put the gateway in pass-through (byte transport) mode and poll one drive from a PC Modbus tool over the serial path. This proves the drives, wiring, node numbers and serial settings.
- Enable the gateway's Modbus TCP mode and poll the same node and register from the PC over Ethernet. This proves the gateway's Modbus engine.
- Switch the network side to A-B Ethernet and fire the SLC MSG against the same node and register. Watch the MSG enable, done and error bits; if the error bit sets, record the exact error code — it names the layer that failed — and do not treat returned words as valid until done sets with clean data.
- On the gateway's diagnostic pages, confirm the request arrived as A-B Ethernet on TCP port 2222 and left as a Modbus RTU frame to the node you set in Remote Station Address, with the function code and register you expected.
- Add the remaining drives one node at a time, repeating steps 3 and 4 for each new node.
A related pattern to keep in mind when one master must reach several downstream devices through one box is covered in how one MSG route reaches multiple Modbus TCP slaves; the routing fields there play the same role Remote Station Address plays here.
Do not use RSLinx discovery as the acceptance test #
RSLinx can discover the gateway while the MSG fails. The EtherNet/IP driver's discovery works by broadcast identity request, which the gateway may answer regardless of its translation configuration, while the Ethernet Devices driver makes a directed A-B Ethernet connection at the configured address. Seeing the device in the browse tree says the IP path is alive, nothing more. Judge the translation path by the MSG done and error bits and by the gateway's own diagnostics. The same trap appears in other mixed-protocol paths, for example when a DF1 driver cannot reach an SLC 5/04 through a DH+ gateway: each driver and each message type binds to a specific protocol, and visibility in one tool proves nothing about the other.
If the SLC also needs to serve serial devices directly, note that its own port is DF1 and the options differ; the paths are laid out in the article on connecting ControlLogix to RS232 and RS485 serial devices and in how to connect a laptop to an SLC 500 serial port. And when the master is polled over Modbus TCP while the PLC runs, expect the same layering issues described in Modbus TCP to EtherNet/IP changes with the PLC running.
One safety note: until the byte layout and every drive's response are verified, treat data coming from the drives as unconfirmed, and do not let unverified speed or status values drive logic that starts, stops or speed-references a running line — force such outputs off or keep the drives in manual during commissioning.
The decision, in short: if the gateway supports A-B Ethernet master on TCP port 2222 plus Modbus RTU slave on its serial port, use it with the MSG settings above; if it is a byte-transport serial server, replace it — no MSG configuration will make it translate.
Questions asked
Can an SLC 5/05 talk Modbus TCP or Modbus RTU directly?
No. Its Ethernet port speaks only the Allen-Bradley protocols, and its serial port is a programming/DF1 port, not a Modbus RTU port. The path is a gateway that receives an SLC Typed Read or Write as A-B Ethernet on TCP port 2222 and reissues it as Modbus RTU on the serial side. A byte-transport serial server cannot do this because it moves raw bytes without understanding either protocol.
Where does the Modbus slave node number go in the MSG?
Set Local/Remote to Remote so the routing fields appear, then enter the drive node in Remote Station Address. Set Remote Bridge Address to 0 and Remote Bridge Link ID to 0. Do not encode the node in the gateway IP address or the first control-block byte; the gateway maps the Remote Station Address onto the Modbus slave address.
RSLinx finds the gateway, so why does the MSG still fail?
RSLinx discovery uses a broadcast identity request on the EtherNet/IP driver, which a gateway can answer even when it is not configured for A-B Ethernet connections. The MSG instead makes a directed connection on TCP port 2222 when MultiHop is No. Match the gateway's network-side protocol to the MSG, then judge success by the MSG done and error bits, never by discovery.

