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.
| Term | Meaning | MELSEC iQ-R example |
|---|---|---|
| Base or rack | Holds the modules and connects them | R35B main base |
| Slot | A numbered module position | Slot 0 is next to the CPU |
| Discrete module | On/off inputs or outputs | RX40C7, 16-point DC input |
| Intelligent module | Specialized function, such as analog | R60AD4 analog input |
| I/O address | The number used in the program | X10, Y170 |
| Parameters | Settings stored in the CPU | System Parameter |
How to Configure PLC Hardware
- Record the real hardware. Read the exact model numbers, firmware where relevant, slot order and any extension racks.
- Create the project using the correct CPU type.
- Add the base, power supply and modules in matching slots.
- Check the address map against your electrical drawings and I/O list.
- Set module parameters, such as analog ranges, where the module needs them.
- Compile and download with the CPU in STOP.
- 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:
- Double-click Module Configuration in the Project view.
- Drag the main base, such as R35B, from the Element Selection window.
- Drag the power supply, such as R61P, onto the base.
- Place the CPU in its slot.
- 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
| Rule | What it means |
|---|---|
| Hexadecimal from 0 | Numbers run 00 to 0F, then 10 to 1F |
| X and Y | X marks an input and Y marks an output |
| 16-point standard | Each slot is numbered in ascending 16-point steps |
| Larger modules | A 32-point module pushes the following slots along |
| Empty slots | Assigned numbers in the initial setting |
| Extension bases | Continue from the last number on the previous base |
| CPU limit | Up to 4096 I/O points |
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.
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.
| Slot | Module | Points | Address |
|---|---|---|---|
| 0 | Input | 16 | X00 to X0F |
| 1 | Input | 16 | X10 to X1F |
| 2 | Empty | 16 reserved | 20 to 2F |
| 3 | Input | 32 | X30 to X4F |
| 4 | Output | 16 | Y50 to Y5F |
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.
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
| Symptom | Likely cause | What to check |
|---|---|---|
| CPU shows an error after download | Software rack differs from real rack | Model numbers and slot order |
| Input LED is on, but the program sees nothing | Wrong address or slot | I/O map and online monitor |
| Wrong output turns on | Addresses shifted | Empty-slot points and module sizes |
| Analog value is wrong | Range or scaling mismatch | Module parameters and 4-20 mA signal |
| HMI shows the wrong value | Tag still uses the old address | HMI tags and driver settings |
| Output module does not switch | Field supply or fuse | Common wiring and I/O fuses |
Commissioning Checklist
- Save a dated backup before and after changes.
- Match every module to the drawings.
- Toggle each input from the field and confirm the address.
- Force outputs only under a safe procedure, with the actuator isolated or its movement made safe.
- Check analog values at low, mid and high range.
- 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
- Mitsubishi Electric: MELSEC iQ-R Series Basic Course (for GX Works3): module configuration, I/O numbering, parameters and writing to the CPU.
