How to Configure PLC Hardware and I/O Addressing

By editor 7 min read
PLC rack with power supply, CPU and four I/O modules labelled with X and Y hexadecimal address ranges

To configure PLC hardware, add the CPU, base, power supply and I/O modules to your programming software in the same slots as the physical rack, confirm each module’s I/O addresses, download the configuration with the CPU in STOP, and test every point. Addressing links each field wire to the program, so a wrong slot or point count can make logic act on the wrong device.

Safety: Changing a configuration can move output addresses. Stop the machine, follow your site’s change procedure and lockout/tagout rules, and verify outputs with the actuators made safe.
TermMeaningMELSEC iQ-R example
Base or rackHolds the modules and connects themR35B main base
SlotA numbered module positionSlot 0 is next to the CPU
Discrete moduleOn/off inputs or outputsRX40C7, 16-point DC input
Intelligent moduleSpecialized function, such as analogR60AD4 analog input
I/O addressThe number used in the programX10, Y170
ParametersSettings stored in the CPUSystem Parameter
Examples from Mitsubishi’s MELSEC iQ-R Basic Course manual.

How to Configure PLC Hardware

PLC hardware configuration workflowList the real modules, build the rack in software, check the I/O map, download with the CPU in STOP, then verify each point.The hardware configuration workflow1 ListReal modules2 BuildRack in software3 AddressCheck I/O map4 DownloadCPU in STOP5 VerifyTest each pointIndustrialBasicsindustrialbasics.com
Figure 1: The software rack must match the physical rack.
  1. Record the real hardware. Read the exact model numbers, firmware where relevant, slot order and any extension racks.
  2. Create the project using the correct CPU type.
  3. Add the base, power supply and modules in matching slots.
  4. Check the address map against your electrical drawings and I/O list.
  5. Set module parameters, such as analog ranges, where the module needs them.
  6. Compile and download with the CPU in STOP.
  7. Check for errors, then test each input and output before running the program.

If you are still choosing a controller, start with our guide on how to select a PLC. For the basics of the controller itself, see what is a PLC.

Worked Platform Example: MELSEC iQ-R

Addressing rules differ by brand, so this guide uses one documented platform rather than mixing them. In Mitsubishi’s GX Works3, the training manual builds a rack like this:

  1. Double-click Module Configuration in the Project view.
  2. Drag the main base, such as R35B, from the Element Selection window.
  3. Drag the power supply, such as R61P, onto the base.
  4. Place the CPU in its slot.
  5. Drag each module to its slot, such as R60AD4 to Slot 0 and R60DA4 to Slot 1.

To set addresses directly, open Parameter > System Parameter > I/O Assignment Setting. The Add New Module dialog includes the module, name, mounting slot, start I/O specification and start I/O number.

The iQ-R numbering rules

RuleWhat it means
Hexadecimal from 0Numbers run 00 to 0F, then 10 to 1F
X and YX marks an input and Y marks an output
16-point standardEach slot is numbered in ascending 16-point steps
Larger modulesA 32-point module pushes the following slots along
Empty slotsAssigned numbers in the initial setting
Extension basesContinue from the last number on the previous base
CPU limitUp to 4096 I/O points
From the MELSEC iQ-R Series Basic Course (for GX Works3).

I/O Address Map Tool

Choose what is in each slot to see the default address range. Try changing the empty-slot setting and watch the later modules move.

MELSEC iQ-R I/O Address Map
IndustrialBasics helper for the main base in default assignment order. Inputs use X and outputs use Y. Confirm the result in GX Works3.
Effect of empty slot points on addressesWith 16 points reserved for an empty slot, the first output starts at Y50. With 0 points reserved, the same output moves to Y40.One empty-slot setting moves every later addressDefault: the empty slot reserves 16 pointsSlot 016 inX00-X0FSlot 116 inX10-X1FSlot 2Empty20-2FSlot 332 inX30-X4FSlot 416 outY50-Y5FSlot 516 outY60-Y6FSlot 616 outY70-Y7FSlot 716 outY80-Y8FChanged: the empty slot reserves 0 pointsSlot 016 inX00-X0FSlot 116 inX10-X1FSlot 2EmptyNoneSlot 332 inX20-X3FSlot 416 outY40-Y4FSlot 516 outY50-Y5FSlot 616 outY60-Y6FSlot 716 outY70-Y7FIndustrialBasicsindustrialbasics.com
Figure 2: A MELSEC iQ-R example. The output in Slot 4 moves from Y50 to Y40.

Worked example

Slots 0 and 1 hold 16-point input modules, Slot 2 is empty, Slot 3 holds a 32-point input and Slot 4 holds a 16-point output.

SlotModulePointsAddress
0Input16X00 to X0F
1Input16X10 to X1F
2Empty16 reserved20 to 2F
3Input32X30 to X4F
4Output16Y50 to Y5F
Default assignment, with 16 points reserved for the empty slot.

If the empty slot is changed to reserve 0 points, the output in Slot 4 moves from Y50 to Y40. The program may still compile, but it would now be switching a different physical terminal. That is why you should set the empty-slot rule and leave space for future modules before you write logic.

Reader tip: Reserve spare slots and keep their addresses in your I/O list. Adding a module later is then much less likely to shift addresses already used by the program, HMI and drawings.

Downloading the Configuration

Mitsubishi’s procedure sets the RUN/STOP/RESET switch to STOP, then uses Online > Write to PLC, selects the parameters and program files, and confirms any overwrite. Back up the existing project first, because a download can replace what is running on the machine.

Common Configuration Problems

SymptomLikely causeWhat to check
CPU shows an error after downloadSoftware rack differs from real rackModel numbers and slot order
Input LED is on, but the program sees nothingWrong address or slotI/O map and online monitor
Wrong output turns onAddresses shiftedEmpty-slot points and module sizes
Analog value is wrongRange or scaling mismatchModule parameters and 4-20 mA signal
HMI shows the wrong valueTag still uses the old addressHMI tags and driver settings
Output module does not switchField supply or fuseCommon wiring and I/O fuses
General fault-finding guidance. Use the error code in your controller’s manual.

Commissioning Checklist

  1. Save a dated backup before and after changes.
  2. Match every module to the drawings.
  3. Toggle each input from the field and confirm the address.
  4. Force outputs only under a safe procedure, with the actuator isolated or its movement made safe.
  5. Check analog values at low, mid and high range.
  6. Update the I/O list, HMI tags and drawings. Clear, consistent names help, as our AIT tag guide shows.

On a Rockwell platform, the same ideas appear as module tags rather than X and Y numbers, as explained in our guide to I/O tags in Studio 5000.

Frequently Asked Questions

What is PLC hardware configuration?

It is the project setting that tells the PLC which CPU, racks, power supplies and modules are installed, and which I/O addresses each module uses.

How do I configure PLC hardware?

List the installed modules, add them to the software in the correct slots, check the addresses, download with the CPU in STOP, then test each I/O point.

What is I/O addressing in a PLC?

It is the numbering that links a physical terminal to a program address. On a Mitsubishi iQ-R, for example, X inputs and Y outputs use hexadecimal numbers.

Why are Mitsubishi I/O numbers hexadecimal?

MELSEC iQ-R I/O numbers count 0 to F in each 16-point group, so after X0F the next input is X10.

Do empty PLC slots use I/O addresses?

On the iQ-R, empty slots are assigned numbers in the initial setting. A parameter can change the points they occupy, which can move later addresses.

What happens if the configuration does not match the rack?

The CPU may report an error or the program may read and write the wrong points. Correct the mismatch before running the machine.

Can I change I/O addresses after commissioning?

Yes, but treat it as a controlled change. Every affected program reference, HMI tag and drawing must be updated, and the points retested.

Does every PLC brand address I/O the same way?

No. Numbering, tag names and software differ by platform, so use the manual for your exact controller.

Sources and Further Reading

About the author

editor

Leave a Comment