Troubleshooting
Why a USB-to-RS485 converter cannot read MicroLogix 1200 data
Short answer
A USB-to-RS485 adapter never gets a reply because the MicroLogix 1200 communication channel 0 is RS232 only. Connect through a USB-to-RS232 adapter, set channel 0 to Modbus RTU slave with matching framing and unit address, then read the data files through the controller's Modbus map, where FC4 input registers expose N12:0 and FC3 holding registers expose N13:0 at protocol offset 0.

On this page
- Why RS485 hardware cannot answer an RS232 port
- Wire the RS232 path correctly
- Set channel 0 to Modbus RTU slave and match framing
- Map the function codes to the data files
- One worked read, with the arithmetic
- Read the symptom before the registers
- Work the list in this order
- The decision for each setup
- Questions asked
The client in this setup does not fail on register numbers; it fails on wire. The MicroLogix 1200 has no RS485 port: its channel 0 serial port is RS232, so a USB-to-RS485 adapter samples a differential pair the controller never drives and returns nothing at any unit address. Swap the adapter for a USB-to-RS232 one, confirm channel 0 is set to Modbus RTU slave with framing that matches the client, then read the data files through the controller's Modbus map — FC4 input registers expose N12:0 and FC3 holding registers expose N13:0, both at protocol offset 0, as publication 1762-RM001 documents. Work the checks in that order; the mapping only pays off after the electrical and framing faults are gone.
Why RS485 hardware cannot answer an RS232 port #
TIA/EIA-232, the standard behind the RS232 name, drives each signal single-ended against a common ground. TIA/EIA-485-A, the standard behind RS485, drives a differential pair. A USB-to-RS485 adapter therefore listens on A and B lines that carry nothing here, while the controller transmits on RS232 signal pins the adapter never samples. No baud rate, parity setting, unit address or register number bridges that, because the electrical layers do not correspond. Modbus RTU itself is a frame format, not an electrical standard, so it runs over RS232 without complaint.
The decision: for one controller within ordinary cable reach, use a USB-to-RS232 adapter — one converter, nothing to configure beyond serial framing. Add an RS485-to-RS232 conversion stage only when distance or a multi-drop segment genuinely requires RS485, and then account for the extra power supply, wiring and direction-control behavior that stage brings. If the destination is SCADA over Ethernet, attach a 1761-NET-ENI to the same serial port instead, as in connecting MicroLogix 1200 PLCs to SCADA through a Net-ENI.
Wire the RS232 path correctly #
Take the channel 0 pinout from the MicroLogix 1200 user manual, publication 1762-UM001, and decide straight-through versus null-modem wiring from that pinout, never from connector gender: controller and PC serial ports typically present the same DTE wiring, which is why the transmit and receive pins usually need crossing. Do not wire the Raspberry Pi's 3.3 V expansion-header UART to RS232 signal pins; RS232 voltage levels will destroy the pin electronics. That is why the USB adapter, with its level conversion built in, is the safer instrument.
If the bench Pi is a stopgap and the permanent role is a data-gathering host beside the controller in the cabinet, that is the duty of an industrial mini PC.
Set channel 0 to Modbus RTU slave and match framing #
Open the controller project in the programming software and check the channel 0 configuration screen:
- The operating mode must read Modbus RTU slave. DF1, DH-485, ASCII and Modbus master modes all leave your poll unanswered.
- Record the Modbus slave (unit) address and the framing: baud rate, parity, data bits, stop bits.
- Check the ladder for MSG instructions that use channel 0; a port driven as a Modbus master will not answer an external poll either.
The Modbus RTU configuration and the slave data map are documented in publication 1762-RM001, the MicroLogix 1200 and 1500 Programmable Controllers Instruction Set Reference Manual; port hardware and channel configuration are covered in publication 1762-UM001, the user manual. The client framing must equal the channel framing element for element; a mismatch produces silence or corrupted frames, not a register error. The Modbus serial specification's own default framing is 8 data bits, even parity, 1 stop bit (two stop bits when parity is off), but the channel screen is the authority for this controller. Silence with wiring already verified is the failure class walked through in fixing a MicroLogix 1400 Modbus RTU timeout on Channel 0, on the sibling controller.
Map the function codes to the data files #
Three different numbers are all called address here, and mixing them wastes hours:
- The unit address identifies the slave on the serial link; take it from the channel configuration.
- The Modbus data address selects a table and an offset within it.
- The native data-file address, such as N13:0, is controller memory, and a generic Modbus node cannot enter it directly.
Publication 1762-RM001 documents how the slave exposes the data files. The first element of each Modbus table maps to the native file at protocol offset 0, which client software displays as address 1, as a register number, or as plain 0, depending on its convention:
| Function code | Modbus table | Native file at the first element |
|---|---|---|
| FC1, read coils | coils | N10:0 |
| FC2, read discrete inputs | discrete inputs | N11:0 |
| FC4, read input registers | input registers | N12:0 |
| FC3, read holding registers | holding registers | N13:0 |
FC3 and FC4 sit side by side in most client drop-downs yet read different tables; the differences are worth a minute in the Modbus FC3 vs FC4 register configuration explainer. The values returned are whatever the loaded program holds in those files, so place a known value in the target word before the first poll. A data-file word the map does not cover — N7:10, for instance — simply has no Modbus presence.
One worked read, with the arithmetic #
Example setup: unit address 1 (take the real one from the channel screen), function code FC4, one register, framing 19200 baud, 8 data bits, even parity, 1 stop bit — the framing figures are examples; the channel screen decides. Input registers use reference numbers 30001 through 39999, and the protocol offset is the reference minus the table base:
- 30001 − 30001 = 0, so the slave returns N12:0.
- 30002 − 30001 = 1, so the slave returns N12:1.
In a client that displays register numbers, enter 30001; in a client that asks for the zero-based offset, enter 0; a client that labels the first element address 1 while transmitting offset 0 agrees with either entry. Holding registers base at 40001 the same way, and coil reads follow the rule too: reference 00001 minus the one-based base of 1 gives protocol offset 0.
Prove the chain with one transaction: move 12345 into the target word in the project, poll FC4 at offset 0, and expect exactly 12345 back. That single result proves transport, framing, unit address, function code and offset together. A value from the neighbouring word means the offset is off by one; a timeout sends you back to the electrical section.
Read the symptom before the registers #
| Symptom | Most likely cause | Next check |
|---|---|---|
| No reply at any unit address | RS485 adapter on an RS232 port, wrong cable, wrong serial device or framing | Adapter type, pinout, serial device, baud, parity, data bits, stop bits |
| Reply at exactly one unit address | Transport works and that address matches the slave setting | Function code and offset |
| Exception response | The controller rejected the function, address or quantity | Function code against the map; quantity within the mapped area |
| Value returns but does not match the PLC | Zero-based versus one-based offset, or the wrong table | Adjacent offset, compared against a known value in the project |
Work the list in this order #
- Confirm the adapter is USB-to-RS232, or a proper RS485-to-RS232 stage — never USB-to-RS485 alone.
- Wire to the 1762-UM001 pinout, straight-through or null-modem as that pinout dictates.
- Point the Modbus read node (node-red-contrib-modbus is the common one) at the serial device the operating system assigned, for example
/dev/ttyUSB0. - Match baud, parity, data bits and stop bits to the channel screen.
- Poll the unit address the channel screen shows.
- Read FC4 at offset 0 and compare against a value you placed in that word.
- Step through FC3, FC2 and FC1 and their tables only after the first register reads back correctly.
The decision for each setup #
- One controller within cable reach: USB-to-RS232 adapter, channel 0 as Modbus RTU slave, first read FC4 at offset 0.
- Longer distance or several slaves on one segment: keep the controller side RS232 and convert to RS485 at both ends, accepting the converter stage, or reposition the client nearer the controller.
- SCADA over Ethernet as the destination: the 1761-NET-ENI route covered by the Net-ENI walkthrough linked above.
- Any other data-file word: exposed only where the map covers it, so find its table and offset in 1762-RM001 before polling it.
Questions asked
Can the programming software and the Modbus client share channel 0?
No. Channel 0 runs one serial protocol at a time, and while it is set to Modbus RTU slave the programming package has no protocol it can use on that port. Switch the channel back to its programming protocol when you need to go online, then return it to Modbus RTU slave. If online access and polling must coexist, put the polling on a separate network, for example Ethernet through a serial-to-Ethernet gateway such as the 1761-NET-ENI.
How long can the RS232 cable between the controller and the client be?
TIA/EIA-232 limits the cable by load capacitance, about 2500 pF, which lands near 15 m of ordinary cable at moderate rates. Slower baud rates sometimes stretch that, but the standard does not promise it. For real distance, keep the controller side RS232 and bridge with an RS485 segment, which TIA/EIA-485 specifies to about 1200 m at 100 kbps, with a converter at each end.
Is DH-485 the same thing as RS485?
No. RS485 is an electrical standard for a differential two-wire bus. DH-485 is a protocol, the token-passing data highway used by older controllers, and channel 0 can speak it over RS232 levels. The shared digits mislead people into buying RS485 adapters. Judge the port by its electrical standard, not by the protocol name on the configuration screen.
What changes when the MicroLogix 1200 is the Modbus master instead of the slave?
The direction of every transaction flips: the controller issues the requests, and each MSG instruction carries both the Modbus data address and the local data-file address, so the mapping is set per instruction rather than fixed for the channel. Publication 1762-RM001 documents the master-side address tables, and the same protocol-offset arithmetic applies to the data address entered there.


