Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 37 ยท Getting Started

PLC Hardware Components

Tour the parts of a PLC: CPU, power supply, digital and analog I/O modules, backplane, memory and communication ports, with a runnable C model of module capacity.

A PLC is not one chip in a box. It is a set of cooperating parts: a CPU that runs the program, a power supply, input and output modules that connect to the outside world, and communication ports that link it to other devices. Knowing what each part does makes datasheets, wiring diagrams and fault messages much easier to read.

This lesson tours the parts of a typical PLC, compares the main hardware styles, and shows how to size a system by counting inputs and outputs.

The main parts

Inside a PLC system

CPU Runs your program
Power supply Feeds CPU and modules
Input modules Read switches and sensors
Output modules Drive motors and lamps

Joined by a backplane bus

1 / 2

CPU. The processor, the memory that holds your program and data, and the firmware that runs the scan. The CPU also has a mode switch or software state: RUN (executes the program), STOP (does not), and sometimes PROGRAM or REMOTE. Many faults begin with the CPU in STOP.

Power supply. Industrial control power is usually 24 V DC. The supply powers the CPU and modules and often provides the 24 V for sensors too. A separate, larger supply feeds motors and heaters through contactors.

Input modules. They convert a field signal (24 V on a terminal) into a clean 0 or 1 inside the CPU, with electrical isolation so that noise or a wiring fault does not reach the processor.

Output modules. They do the opposite: they take a 0 or 1 from the CPU and switch a real load. Outputs come in three common types.

Output type Switches Good for Watch out for
Relay AC or DC, mechanical contact Mixed voltages, general loads Slow, wears out with many cycles
Transistor DC only, solid state Fast switching, small DC loads Current limited, polarity matters
Triac AC only, solid state AC heaters, lamps Leakage current when off

Backplane and communication

In a modular PLC the modules plug into a rack or DIN rail, and a backplane bus carries data between the CPU and each module. Communication ports (Ethernet, serial, fieldbus) connect the PLC to programming laptops, HMI panels and other PLCs; you will study them in Communication Protocols.

Memory in a PLC

The CPU holds several kinds of memory: a program area (your logic), data (variables, timers, counters), and an I/O image (a copy of the inputs and outputs, see the scan cycle). Program memory is retained on power loss in flash. Some data can be marked retentive so it keeps its value after a power cycle, while other data resets.

Sizing a system

A first step in any project is an I/O list: every button, sensor, valve and lamp, and its type. Add a safety margin (often 10-20 %) for spares and future changes.

C Stand-in: count modules needed from an I/O list (C model)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

Power and wiring basics

Inputs are wired in one of two styles. Sinking (NPN) and sourcing (PNP) describe the direction in which current flows relative to the module. A sourcing input expects a 24 V signal on the terminal; a sinking input expects the terminal to be pulled to 0 V. Mixing the two types is a classic commissioning mistake, so always read the module datasheet.

Treat all wiring diagrams in this course as teaching sketches. Real installations must follow your local electrical codes and be done by qualified people.

A tiny model of the CPU modes

C Stand-in: CPU RUN/STOP behaviour (C model)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

In STOP the program does not run and outputs typically fall to a defined safe state (usually off). That is why a PLC in STOP often means "everything stopped".

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which part of the PLC executes your program?

    The CPU holds the program and runs it each scan.
  2. 2. Which output type is limited to DC loads but switches quickly?

    Transistor outputs are solid state, fast, and for DC only.
  3. 3. What does the backplane do in a modular PLC?

    The backplane bus connects the CPU with each I/O module in the rack.
  4. 4. Why add spare points to an I/O list?

    Projects grow, and a margin avoids rewiring or a new module later.

Summary

  • A PLC system = CPU, power supply, I/O modules, backplane and communication ports.
  • Relay, transistor and triac outputs suit different loads.
  • Compact, modular and distributed designs trade size against flexibility.
  • Start a project with an I/O list and a spare margin.

Next: The Scan Cycle