IMDHMIControls LibraryShop main store

Explainer

What a MicroLogix 1200 needs to run as a Modbus master

Industrial networks Published 8 min read

Short answer

A MicroLogix 1200 runs as a Modbus RTU master on its serial channel once two things are settled: the programming software is RSLogix 500 6.10 or later, and you have decided that this controller initiates the requests. Commission one read against one known register first — a valid exception response proves the link, address and framing work, and a timeout sends you to the transport, not the data map.

On this page
  1. The documented capability and the version floor
  2. Decide who initiates before you touch the wiring
  3. Read the failure: silent bus versus exception
  4. A timing budget for one transaction
  5. Commission one read, then scale up
  6. Trust the data map only after you prove the offset
  7. Questions asked

A MicroLogix 1200 runs Modbus RTU master on its serial channel, and the whole job turns on two decisions you make before any wire is moved: the programming software must be RSLogix 500 6.10 or later, and you must decide, once and finally, which device initiates each request. The controller's user manual documents Modbus RTU master and slave operation, and the manufacturer's quick-start documents for the 1200/1500 pair walk through the channel configuration and a first master transaction. This article gives you the version gate, the role decision, a transaction timing budget you can check with arithmetic, and the test read that separates a dead link from a working one: when a slave answers with a Modbus exception, your link, framing and addressing are already good, and the problem is the register map.

The documented capability and the version floor #

The capability question is settled by the controller's user manual, publication 1762-UM001: the serial channel supports Modbus RTU master and slave. The gate is software. The quick-start walkthrough A20917, Quick Start Modbus Channel Configuration for Micrologix 1200/1500 Controllers, states that the master role requires RSLogix 500 6.10 or later, and the family's release notes, publication 1762-RM001, list 6.10.10 or higher as the level that carries all of the latest features. An editor older than that minimum opens the project but cannot configure the channel for master, so check the version your programming software reports before scheduling the job.

Decision: if the editor reports anything below the minimum, upgrade first — nothing else on this list matters until that passes. Get the software and both publications from Rockwell Automation or an authorized distributor, and treat the version floor as a programming-software requirement only: it does not replace checking the controller's firmware revision against the prerequisites the quick start states.

Decide who initiates before you touch the wiring #

Modbus RTU is strictly request and response: exactly one master originates every transaction, and slaves only answer. Two devices configured only to respond give you a perfectly wired, baud-matched, completely silent bus, and no serial setting fixes that. The role decision comes first, and it decides the channel configuration, the message logic and who you blame when the bus stays quiet.

  • If the 1200 must fetch data — drive parameters, power-meter registers, remote I/O — it is the master: configure its serial channel for Modbus RTU master and every other device on the segment as a slave.
  • If another controller or an operator panel already owns the bus and polls the 1200, that channel is a slave, and the message-sequencing work below does not apply to it.
  • One master per segment: two masters on one RS-485 bus fight over the wire and both lose frames.

Then read past the words 'supports Modbus' on each datasheet. The name covers serial RTU, serial ASCII and Modbus/TCP, and they do not interconnect by themselves. For each device, confirm the transport (serial RTU), the electrical interface (RS-232 or RS-485), the slave-address setting and the function codes it implements. A device that speaks Modbus over Ethernet does not join a serial channel because the name matches; it needs a gateway, which is a different project. Match the electrical layer to the topology: an RS-485 multidrop is daisy-chained with termination at both physical ends of the segment, while an RS-232 link is point-to-point and needs none.

If a MicroLogix 1100 is on the same bench, the walkthrough configuring MicroLogix 1100 channel 0 for Modbus RTU covers that controller's serial setup step by step.

Read the failure: silent bus versus exception #

When the first transaction misbehaves, the symptom tells you which half of the system to repair. Watch the message instruction's status and the slave's own diagnostics through one transaction.

What you observe What it means First move
The message never fires Trigger logic not executing, or the channel is not in the master role Check the rung logic and the channel's protocol selection
Request on the wire, nothing back Wrong slave address, framing mismatch, wiring or role conflict Compare address, baud, parity and stop bits at both ends before replacing cable
Valid exception response The transaction completed; the slave heard you and refused the request Decode the exception code against the device's register map
Reply arrives, values look wrong Address offset, word order or signedness Read one register you can verify and compare raw words

A slave signals an exception by returning your function code with 128 added, followed by one exception byte. Code 01, illegal function, means the device does not implement that function code. Code 02, illegal data address, means no register exists at the protocol address you requested — that is the classic 40001-offset error. Code 03, illegal data value, means the quantity or a value in the request is out of range for the device.

The decision follows directly. A valid exception is success at the transport level — address matched, framing matched, CRC passed — so the repair is in the request content, not the wiring. A timeout is a transport failure, and changing register addresses or scaling cannot repair it; put that effort into the slave address, framing, wiring and termination instead. If the slave answers only intermittently or drops frames silently, a gap inside the transmitted frame is a common cause: the article why a Modbus RTU frame gap before the CRC silences the slave works that exact case.

A timing budget for one transaction #

Price the transaction before you promise a refresh rate. The arithmetic below is a worked example, not a specification — where an assumption appears, the device's published figure replaces it.

Example: read 10 holding registers (function code 03) from one slave at 19200 baud, with the framing the Modbus serial-line specification defaults to: 8 data bits, even parity, 1 stop bit. A device set to no parity runs two stop bits instead; its manual governs.

  • One character = 1 start + 8 data + 1 parity + 1 stop = 11 bits; at this line speed a character takes 0.573 ms.
  • The request carries slave address, function code, start address (2 bytes), quantity (2 bytes) and CRC: 8 characters = 4.58 ms.
  • The response carries slave address, function code, byte count, 20 data bytes and CRC: 25 characters = 14.33 ms.
  • Modbus RTU delimits frames with at least 3.5 silent character times; counting the gaps at both ends gives 7 characters = 4.01 ms.
  • Wire time = 4.58 + 14.33 + 4.01 = 22.92 ms; with an assumed 10 ms of slave processing — an example figure, since a real drive or meter publishes its response time — one transaction costs about 33 ms.

Scale it: ten slaves, one ten-register read each, polled back-to-back sweep the segment in 10 × 33 ≈ 330 ms, which fits a one-second refresh with roughly three times the headroom. At 9600 baud the wire time doubles to about 45.8 ms per transaction and the sweep lands near 560 ms — still inside one second, but with little left for a retry. Decision: run the segment at 19200 baud, poll only the registers you use, and keep the full sweep under half the refresh target so one retry or one slow slave cannot blow the budget.

Commission one read, then scale up #

Build the first transaction against one device, one read, one register you can verify:

  1. Save the project and record how the programming PC reaches the controller. If the PC talks through the same serial channel you are about to repurpose, know the documented way back in before you download — the user manual's default communication configuration section lists the settings the channel carries by default.
  2. In the channel's communication settings, select the Modbus RTU master role and set baud, parity, data and stop bits to match the slave exactly, then give every responder on the segment its own slave address.
  3. Build one message instruction that reads with function code 03: slave address, protocol start address, quantity 10, and a data-table area in the controller to hold the reply.
  4. Trigger the instruction once and let it finish — done or error — before firing it again. One serial bus carries one outstanding transaction at a time; continuously retriggering a failed request only hides the real status word.
  5. Keep the first tests read-only: a write trial against a drive or a live process can move a setpoint or start an output.
  6. Compare the raw words that came back with a value the device itself displays — a diagnostic register, a firmware revision, a known constant — before you trust the map.

When that one read is stable, adding slaves becomes a scheduling problem: the article on polling many Modbus RTU slaves from one serial master shows the sequencer pattern that keeps transactions strictly one at a time.

Trust the data map only after you prove the offset #

Device manuals number holding registers 40001, 40002 and upward; the address that travels in the request frame is the protocol offset, the manual's number minus 40001. The example window above — manual registers 40011 through 40020 — is therefore requested as protocol address 10 with quantity 10, and the first word of the reply is register 40011. If that request returns exception code 02, the device either starts its map elsewhere or expects the raw 4xxxx number in the address field; read one register you can see on the device's own display and test the offset both ways until the raw words match what the display shows.

Two more traps corrupt values even when addressing is right. A 32-bit value spans two consecutive registers, and high-word-first versus low-word-first ordering differs between devices, so pin the order down with a known value. Then check signedness: a raw word of 65535 interpreted as a signed 16-bit integer is 65535 - 65536 = -1, so a device showing -1 while the controller holds 65535 has an interpretation mismatch, not a wiring fault.

The classic use for this role is exactly that pattern — a compact controller polling drive registers — and the walkthrough connecting a MicroLogix 1100 to a PowerFlex 4M over Modbus documents the drive-side register handling; that drive-side check applies whichever controller does the polling.

Questions asked

Can the serial channel run Modbus master and slave at the same time?

No. A channel's protocol configuration selects one role at a time, so a channel set to Modbus RTU master will not also answer slave requests on that port. Decide the role from who initiates: the device that originates each request is the master, and a serial segment carries exactly one. If another controller or an operator panel must poll the MicroLogix, that polling relationship is a separate design from the master link this article builds.

Which slave addresses can I assign on a Modbus RTU segment?

Valid RTU slave addresses run from 1 to 247; address 0 is reserved for broadcast writes and 248 to 255 are reserved by the protocol. Give every responder a unique address in that range and make sure the address in the message instruction matches the setting on the device itself. An address mismatch looks exactly like broken wiring from the master's side: the request leaves and nothing comes back.

Does a MicroLogix 1500 need a different setup?

The quick-start documents for this role cover the 1200 and 1500 together, so the shape is the same: the software version floor, the channel role selection, one message instruction per transaction. Before reusing a 1200 project on a 1500, check that controller's own user manual for its port details and firmware prerequisites, and remember the version floor applies to the programming software on your PC, not to the controller in the panel.

How many slaves can one MicroLogix 1200 poll?

Size it from the transaction budget rather than a fixed count. In this article's example, one ten-register read at 19200 baud costs about 33 ms including slave processing, so ten slaves polled back-to-back sweep in roughly 330 ms and fit a one-second refresh with margin. At 9600 baud the same sweep lands near 560 ms, still inside one second but with little room left for a retry.

Keep reading

  • How-to

    Configure Modbus RTU on an S7-400H master over serial CPs

    An S7-400H cannot run Modbus RTU from the CPU, so fit one serial CP in each of the two subsystems, license the Modbus_Red redundant library, and poll the S7-1500's CM PtP as a separate slave link. Keep the existing PUT/GET path for the bulk PLC-to-PLC data and reserve RTU for the registers the client actually requires.

    Industrial networks

  • Explainer

    What a ControlLogix 5550 needs to poll DL05 Modbus RTU

    The ControlLogix 5550's DF1 messaging cannot originate a Modbus RTU poll, and the DL05 answers only as an RTU slave. Give the 5550 a Modbus RTU master on a port of its own — an in-chassis module such as the MVI56E-MCM or an Ethernet-to-serial gateway — then match serial framing, target the DL05's station address, use its documented register map, and bring up one DL05 with a timeout set from a measured radio round trip before adding the rest.

    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