A rack-mounted PLC is built from a power supply, a CPU and a row of plug-in I/O cards, and the division of labour is fixed: the CPU calculates, the power supply feeds, the I/O exchanges signals with the field, and the base plate links the modules together. The sections below follow the path a signal takes inside the PLC and set out what each module is responsible for and where people commonly get it wrong.
A PLC differs from a relay panel in one basic way: it does not process every signal at the same time, but scans over and over in a fixed order. One scan cycle has three steps. First, the field states on the input modules are read in one pass into the image area. Then the CPU executes the user program instruction by instruction, reading from and writing to the image area. Finally, the results in the output image area are sent in one pass to the output modules, which drive the loads.
The CPU is the brain of the PLC. Inside it there is a microprocessor, memory, a communication interface and indicator lamps. It runs the user program cyclically, maintains the input and output image areas (the program reads and writes the image, not the terminals), exchanges data with programming software, HMI panels and host computers over Ethernet or a fieldbus, and monitors scan overrun and module status. The two things most often overlooked at selection time are memory capacity and scan speed: more program steps and communication points demand more memory, while high-speed counting and closed-loop work depend on instruction speed.
The power supply module rectifies AC 220 V (or AC 110 V) into the DC 5 V used inside the rack, and some models also output DC 24 V for sensors and external contacts. Two separate current budgets have to be kept apart. The backplane 5 V current is shared by every module on the same base plate, so the individual currents must be added up; the 24 V current feeds proximity switches and interposing relay coils.
If the result exceeds about 70% of the rated output of the power supply, move to a larger model, or take the 24 V loads onto a separate switching power supply. Piling both sensor supply and output loads onto the power supply module is a common reason why a machine "cannot drive its loads" during commissioning.
The I/O modules touch the field directly and come in digital and analog types. Digital inputs turn the on/off states of pushbuttons, limits and proximity switches into 0/1 after opto-isolation and filtering, and the sourcing or sinking wiring must match the polarity of the module common terminal. Digital outputs come in relay, transistor and thyristor types: relay outputs handle AC or DC loads but have a limited switching life, while transistor outputs are fast and long-lived but drive DC loads only; when driving inductive loads such as solenoid valves and contactor coils, a freewheeling diode or surge absorber must be fitted, otherwise the back EMF at switch-off damages the output point. Analog modules use A/D and D/A conversion for continuous quantities, and selection hinges on resolution, range and accuracy.
The base plate is the channel for power and communication between modules: it distributes the 5 V bus from the power supply to every slot, and it carries the internal bus that lets the CPU exchange image data with the I/O modules. That gives rise to a few constraints: modules must go into designated slots; the base plate has a slot count and a current limit, so if the 5 V current is exceeded once the modules are fitted, add an expansion base or a larger supply; and an expansion cable has a definite length limit that causes communication errors if exceeded.
| Module | Core role | Key parameters | Selection basis |
|---|---|---|---|
| CPU | Runs the program, manages the image, communication and diagnostics | Memory capacity, instruction speed, communication ports | Program steps and communication load |
| Power supply | Rack DC 5 V output, 24 V on some models | Rated 5 V/24 V current | Total 5 V current plus 24 V loads |
| Digital input | Acquires the on/off state of buttons and limits | Point count, input voltage, sourcing/sinking | Signal type and point count |
| Digital output | Drives relays, solenoid valves and indicator lamps | Point count, output type, current per point | Load type and switching frequency |
| Analog input | Converts a continuous quantity into a digital value | Channel count, resolution, range | Sensor signal and accuracy |
| Analog output | Converts a setpoint into a voltage or current | Channel count, range, load capability | Input specification of the actuator |
| Base plate/backplane | Module power supply and bus channel | Slot count, 5 V limit, cable length | Total number of modules and cabinet layout |
| Communication module | Exchanges data with host computers, VFDs and remote I/O | Protocol, baud rate, number of stations | Network topology and connected devices |
Small PLCs often combine the power supply, CPU and several I/O points in one compact unit with only a few expansion slots; mid-range and large PLCs split the functions into separate modules fitted to a rack. Whichever form it takes, the four roles never change: the CPU handles calculation and scheduling, the power supply handles supply, the I/O handles signals in and out, and the base plate handles connection and distribution.
The graphical symbols and terminal designations used here follow the GB/T 4728 series, Graphic symbols for electrical diagrams. The electrical connection, protection and earthing of a PLC and its peripherals follow GB 5226.1 and the equivalent international standard IEC 60204-1. The current, point count and range of a specific module are as stated in the manufacturer's selection manual; the items listed here illustrate the accounting method.
Always switch off before adding or removing modules, and check that the backplane 5 V current still falls within the rated range of the power supply. Circuits carrying safety functions such as emergency stop and safety gates should run through a separate safety relay.