IMDHMIControls LibraryShop main store

Explainer

Why MSG Rack, Group and Slot match PLC-5 block transfers

PLC programming Published 5 min read By IMDHMI controls team

Short answer

Keep the PLC-5 rack and group numbers and put the old Module selector into the Logix MSG Slot field. The RIO address is logical: a group is one two-word I/O group set by the chassis addressing mode, and the slot picks the module position inside that group. Copy the address only when the adapter switches, chassis and module positions are unchanged.

On this page
  1. What rack, group and slot select
  2. A group is a logical pair of words, not a chassis slot
  3. From a physical slot to group and slot
  4. The rest of the message carries over unchanged
  5. The decision for each case
  6. Questions asked

When a PLC-5 hands its 1771 analog I/O over to a ControlLogix system through a DH+/RIO card, the block-transfer destination does not get renumbered. Copy the old rack and group into the MSG configuration and type the old Module selector into the field Studio labels Slot. The label changed; the address did not. RIO addressing is logical, and the adapter's switches and the chassis addressing mode decide which logical group a physical slot belongs to — none of that hardware changed when the processor side was migrated. What follows is what each field selects, the arithmetic from a physical slot to group and slot, and the decision for each case the migration hands you.

What rack, group and slot select #

The RIO scanner divides the link into logical racks. Each rack holds eight groups, and each group carries one input word and one output word. The three destination numbers locate one module inside that structure, and the rename between the two instruction sets touches only the third of them:

PLC-5 BTW/BTR field Logix MSG field What it selects
Rack Rack The logical rack the adapter answers on
Group Group The logical I/O group within that rack
Module Slot The module position within the group

The classic PLC-5 user manual, publication 1785-UM001, defines that third number as the slot number within the group, 0 or 1 — exactly the meaning the Slot field keeps. Making Slot equal Group, a shortcut that looks tidy on the configuration screen, points at a position that does not exist: the selector inside a group has only two legal values.

A group is a logical pair of words, not a chassis slot #

Two settings on the 1771-ASB adapter map physical slots onto groups: the addressing mode and the rack size. In 2-slot addressing, adjacent slots share one group — the even-numbered slot is module 0, the odd slot module 1 — so one group spans two physical slots. In 1-slot addressing every slot is its own group and the selector is always 0. The rack-size switch (1/4, 1/2, 3/4 or full rack) fixes how many groups the chassis occupies: two, four, six or eight.

That mapping is why a group number can masquerade as a slot number: under 1-slot addressing the two coincide, and under 2-slot addressing the group is half the slot number. The rack-size mechanism behaves the same way on the FLEX adapter, as covered in why the 1794-ASB rack size snaps back to 1/2 on RIO. When the same 1771 specialty modules sit behind a ControlNet bridge instead of an RIO scanner, troubleshooting ControlNet scanning of legacy 1771 specialty I/O covers what changes on that side.

From a physical slot to group and slot #

Work one module through the mapping with example inputs: a 12-slot 1771 chassis in 2-slot addressing, rack size 3/4 (six groups), adapter switches placing the chassis at logical rack 3, and the analog module in physical slot 7, counting slots from 0 at the left edge.

Group: divide the slot by the two slots per group and drop the remainder. 7 ÷ 2 = 3, so the module sits in group 3.

Slot: the remainder picks the position inside the pair. 7 − (3 × 2) = 1, so the selector is 1.

The old block-transfer read therefore carries rack 3, group 3, module 1, and the migrated MSG carries rack 3, group 3, slot 1. Under 1-slot addressing the division disappears: an 8-slot chassis at full-rack size gives each slot its own group, so a module in slot 5 is addressed as group 5, slot 0.

Your PLC-5 numbers already contain this arithmetic. With the chassis, the adapter switches and the module positions untouched, the DHRIO scanner talks to the same adapter at the same logical rack, so the MSG needs exactly the three numbers the old instruction used, with Module renamed Slot. That is the entire migration of the address.

The rest of the message carries over unchanged #

Three more parts of a block transfer belong to the module, not to the processor, so they copy across with the address:

  • Direction. A block-transfer write sends the module its configuration; a block-transfer read returns data and status. Give each old BTW and BTR the matching message direction.
  • Length. The word count belongs to the module's data layout. Copy it from the old instruction: a read that asks for more words than the module returns fails or returns junk even with a perfect address.
  • Sequence. Many 1771 analog modules must receive their configuration write after power-up before reads return valid data. Migrate the rung logic that triggers the write, not just the message.

Adding the DHRIO to the I/O tree configures its scanner and the discrete image; the block transfers remain separate MSG instructions with a hand-typed destination. A green connection in the tree proves the link and nothing about the typed address. When you prove a write to an analog output module, keep the process in a safe state, because the test value reaches the field wiring.

The decision for each case #

  • Same chassis, same adapter switches, modules unmoved: copy rack and group, put the old module number in Slot. This is the normal case, and it needs no recomputation.
  • Module moved inside the chassis: recompute group and slot with the division above; the old numbers are now wrong.
  • Adapter switches changed (rack, addressing mode or rack size): every destination that reaches that chassis is void. Rebuild all three numbers for every BTW and BTR that serves it.
  • Message errors immediately: work the path through the DHRIO card before the address — a message that never reaches the adapter cannot be an addressing fault. The path construction through that card is covered in why a ControlLogix MSG to a PLC-5 over Ethernet and DHRIO fails.
  • Message completes with wrong data: trust the link, distrust the destination. Re-derive group and slot, then check the returned words against the module's data layout before touching scaling.

Take the three numbers from the adapter and the chassis rather than from the old screen, and the renamed Slot field stops feeling wrong: it is the same within-group selector the PLC-5 always had.

Questions asked

What goes in the Slot field when the chassis uses 1-slot addressing?

Zero, always. One-slot addressing gives each physical slot its own I/O group, so every module is the first and only module in its group and the selector never leaves 0. The group number then equals the slot position counted from the left edge of the chassis. If the old PLC-5 program shows a module number of 1 anywhere in that chassis, the adapter is not in 1-slot addressing, and the two-slot arithmetic applies instead.

The module moved two slots during the rewiring. Do the old numbers still work?

Not reliably. Under 2-slot addressing, moving a module two physical slots keeps the Slot value and changes Group by one; moving it a single slot flips Slot between 0 and 1 and changes Group only when the move crosses a slot pair. Recompute instead of reusing: divide the new slot number by two for the group and take the remainder for the slot, then confirm the adapter's rack switches still place the chassis on the same logical rack.

The DHRIO shows a green connection in the I/O tree. Does that prove the block-transfer destination?

No. The tree connection proves the scanner is talking to the adapter and carrying the discrete image, which the DHRIO manages from its own module configuration. Block transfers are separate MSG instructions whose rack, group and slot you type by hand, so a working tree says nothing about the typed destination. Prove the destination with a read: drive a known signal into the addressed channel and confirm the returned words move with it.

The old program re-sent its configuration write on a timer. Should the migrated message do the same?

Keep the trigger, not the rate. Modules configured by block transfer lose that configuration when the chassis powers down, so the write must run after every power-up, which is what the old rung's conditions provided. Re-issuing it continuously spends RIO link time that the discrete image and the reads also need, so a power-up trigger with a retry when the message errors meets the requirement with less traffic, unless the module's documentation demands periodic refresh.

Keep reading

  • Explainer

    What migrating a PLC-2 system to a PLC-5 really involves

    No full rewrite and no plain file swap: Allen-Bradley sold conversion software and a translation service that move most PLC-2 logic into PLC-5 format and remap addresses. Instructions without PLC-5 equivalents come back needing hand recoding, every ladder-controlled DH message must be rebuilt around the MSG instruction, and I/O modules carry over while local chassis adapters become remote adapters. Survey every chassis before ordering hardware.

    PLC programming

  • Explainer

    How a PLC-5 block transfer feeds Modbus data to a master

    A Modbus module in a PLC-5 rack answers a master from its own database only: the function code and start address select a location in the module's configured map, and the module returns whatever sits there. Your ladder fills that database with block-transfer writes and empties it with block-transfer reads, so prove the map, then the transfer logic, then the master's request, in that order.

    Industrial networks

  • How-to

    Reading DH+ global status words into ControlLogix

    The 1756-DHRIO does not expose DH+ Global Status Words to ControlLogix and no generic CIP message can fetch them. Replace them with explicit MSG reads of the integer registers the PLC-5 or SLC program already writes, one request in flight per node, and budget one channel connection per controller-to-node pair against the 32 a DH+ channel supports.

    Industrial networks