PLC Fundamentals — Lesson 2
PLC Architecture and Components
Understand how a PLC receives signals, executes control logic and communicates with industrial equipment.
1. Learning Objectives
After completing this lesson, you should be able to:
- Identify the major functional parts of a PLC system.
- Explain the functions of the CPU, memory, power supply and I/O interfaces.
- Differentiate digital inputs, digital outputs, analogue inputs and analogue outputs.
- Explain the difference between compact and modular PLCs.
- Trace a basic signal path through an automated machine.
- Recognise common PLC architecture mistakes and misconceptions.
2. What Is PLC Architecture?
PLC architecture describes how the functional components of a Programmable Logic Controller are organised and how they work together to control a machine or industrial process.
A typical PLC system may include:
- Power supply
- Central Processing Unit (CPU)
- Memory
- Input interface
- Output interface
- Communication interface
- Programming software
- External sensors and control devices
3. PLC Functional Block Diagram
Consider an automated conveyor. A sensor detects a component, the PLC evaluates the input using its control program, and the output system commands the appropriate control equipment.
Programming software and HMI devices may communicate with the PLC when supported and configured. The power-supply arrangement supports the controller and associated modules.
Signal sequence:
Field Device → Input → CPU and Program → Output → Control Equipment → Machine Response.
4. Main Components of a PLC
4.1 Power Supply
The power-supply arrangement provides the electrical power required by the PLC and its modules.
Depending on the model, a controller may accept an AC supply, use a DC supply or require a separate power-supply arrangement.
The controller supply, sensor supply and output-load supply must not be assumed to be interchangeable.
4.2 Central Processing Unit (CPU)
The CPU executes the control program and manages controller operations.
Imagine a conveyor system. The CPU processes the available input information and evaluates the programmed conditions to determine the appropriate output commands.
For example, a program might permit a conveyor run command only when the system is enabled and the required operating conditions are satisfied.
The actual behaviour depends on the control program, controller configuration and machine design.
4.3 Memory
PLC memory supports functions such as storing the user program, configuration information and operating data.
The available memory types and their behaviour during a power interruption depend on the controller.
A technician should consult the manufacturer's documentation before assuming that a particular value, setting or program will be retained after power is removed.
4.4 Input Interface
The input interface receives compatible electrical signals from field devices.
Common input devices include:
- Push buttons
- Selector switches
- Limit switches
- Inductive proximity sensors
- Photoelectric sensors
- Pressure switches
- Compatible temperature transmitters
The device must be compatible with the input module's electrical characteristics.
4.5 Output Interface
The output interface provides signals used to command external devices.
Typical applications include:
- Indicator lamps
- Interposing relays
- Solenoid valves
- Contactors through suitable control circuits
- Other compatible control equipment
The output type, current rating, voltage rating and switching characteristics must match the application.
4.6 Communication Interface
A communication interface allows a PLC to exchange data with compatible devices.
Depending on the controller and system configuration, these devices may include:
- Human-Machine Interfaces (HMIs)
- Remote I/O systems
- Other PLCs
- Variable-Frequency Drives (VFDs)
- Supervisory monitoring systems
Communication compatibility depends on supported protocols, hardware, configuration and network design.
4.7 Programming Environment
Programming software allows authorised users to develop and manage control programs and, where supported, configure hardware, monitor program execution and investigate faults.
Different manufacturers use different software environments, terminology and device configurations. For this reason, learners should understand general PLC concepts before moving to manufacturer-specific programming.
5. Understanding PLC Inputs and Outputs
PLC inputs and outputs can be classified according to the type of signal they handle.
| Signal Category | Meaning | Example |
|---|---|---|
| Digital Input | Receives a discrete signal. | Push button or compatible ON/OFF sensor. |
| Digital Output | Commands a discrete state. | Indicator lamp or appropriately interfaced solenoid. |
| Analogue Input | Receives a varying measurement signal. | Compatible pressure transmitter. |
| Analogue Output | Provides a varying control signal. | Compatible command to a drive or control device. |
5.1 Digital Signals
A digital signal commonly represents discrete states. In a simple industrial application, these may correspond to ON and OFF conditions.
The electrical representation depends on the device and interface. Input voltage requirements, polarity, common terminals and signal compatibility must be checked in the relevant documentation.
5.2 Analogue Signals
An analogue signal represents a varying quantity within a defined range.
For example, a compatible pressure transmitter might provide a 4–20 mA signal representing a specified pressure range.
The PLC system must be configured and scaled correctly to convert the measured electrical signal into meaningful engineering units.
6. Compact PLC vs Modular PLC
6.1 Compact PLC
A compact PLC integrates several functions into one unit. Depending on the model, it may contain the controller, power-supply functions and a number of built-in input/output points.
Expansion options, communication capabilities and supported I/O depend on the specific model.
6.2 Modular PLC
A modular PLC uses separate compatible modules assembled into a system. Depending on the design, these may include a CPU, power supply, digital I/O, analogue I/O and communication modules.
| Feature | Compact PLC | Modular PLC |
|---|---|---|
| Physical arrangement | Several functions integrated into one unit. | Functions distributed across compatible modules. |
| Initial configuration | Often simpler for smaller applications. | May require more detailed system planning. |
| Expansion | Depends on supported expansion options. | Depends on supported modules, racks and system limits. |
| Maintenance | Some integrated functions may not be independently replaceable. | Some modules may be replaceable independently. |
| Selection | Match the integrated capabilities to the application. | Match the complete module configuration to the application. |
Neither type is automatically better for every application. Selection depends on I/O requirements, processing needs, communications, environment, maintainability, expansion and total cost.
7. Worked Example: Automatic Conveyor
Consider a conveyor that transports components past a detection point.
- The system is enabled through its intended control arrangement.
- A compatible sensor detects a component.
- The PLC evaluates the sensor signal and other programmed conditions.
- The PLC commands the appropriate output when the required conditions are satisfied.
- The motor-control system responds to the command.
- Additional feedback, where provided, helps confirm the process state.
| Task | Relevant Component |
|---|---|
| Detect a component | Sensor |
| Receive the sensor signal | PLC input interface |
| Evaluate programmed conditions | CPU executing the control program |
| Issue a control command | PLC output interface |
| Switch or regulate motor power | Appropriate motor-control equipment |
| Display configured status | HMI, if included |
| Confirm a position or process state | Suitable feedback device, if provided |
This is a simplified functional example. An actual machine requires application-specific electrical design, suitable protection, appropriate interlocks and a validated safety arrangement.
8. Troubleshooting Case: The PLC Input Does Not Change
Imagine that a component passes the sensor, but the expected PLC input state does not change.
A beginner might immediately replace the sensor or PLC. An experienced technician investigates the evidence first.
Possible Causes
- The component is outside the sensor's detection range.
- The sensor is incorrectly selected or configured.
- The sensor supply is unavailable.
- The signal wiring is faulty.
- The sensor output type is incompatible with the input module.
- The input channel or configuration is incorrect.
- The sensor or input channel has failed.
Systematic Diagnostic Approach
- Establish a safe condition. Follow the authorised diagnostic procedure before inspection.
- Check the documentation. Verify the sensor and input-module specifications.
- Observe the sensor. Check its status indicators where provided.
- Monitor the PLC input. Use the approved monitoring method to inspect the relevant input state.
- Investigate the signal path. If the sensor indicates detection but the input does not change, examine compatibility, wiring and configuration under the approved procedure.
- Record the evidence. Confirm the likely cause before replacing a component.
9. Common Beginner Mistakes
Mistake 1: Assuming Every PLC Has the Same Terminals
Different models have different terminal layouts, electrical ratings and supported functions. Check the exact manual.
Mistake 2: Assuming Every Input Uses the Same Voltage
Input requirements depend on the specific module and signal type.
Mistake 3: Confusing an Output Command with a Physical Result
The PLC may command an output without the machine completing the intended action. The external circuit, actuator and mechanical system also matter.
Mistake 4: Assuming Analogue Values Need No Scaling
Raw input values may need configuration and conversion into engineering units.
Mistake 5: Treating the HMI as the CPU
An HMI provides an operator interface. The PLC CPU performs its configured controller functions.
10. Practical Activity: Identify the PLC Architecture
Objective: Identify a PLC's major functional sections and document its available I/O.
Required equipment: An isolated PLC training unit, the correct manufacturer's manual and an observation sheet.
Procedure
- Record the manufacturer and exact model.
- Determine whether the PLC is compact or modular.
- Identify the CPU or integrated controller section.
- Locate the input and output interfaces.
- Determine which digital and analogue I/O functions are available.
- Identify the supported communication interfaces.
- Use the manual to record the permitted electrical specifications.
- Draw a functional block diagram of the training system.
- Explain how one input could influence one output through the control program.
Do not energise, rewire or open equipment unless the prescribed training procedure permits the work and appropriate supervision and protection are in place.
Observation Sheet
| Item | Learner's Observation |
|---|---|
| Manufacturer | ________________________ |
| Model number | ________________________ |
| Compact or modular | ________________________ |
| CPU/controller section | ________________________ |
| Power-supply arrangement | ________________________ |
| Digital inputs | ________________________ |
| Digital outputs | ________________________ |
| Analogue inputs, if available | ________________________ |
| Analogue outputs, if available | ________________________ |
| Communication interfaces | ________________________ |
| Manual reference | ________________________ |
11. Knowledge Check — MCQs
Q1. What is the main function of a PLC CPU?
A. To provide mechanical power
B. To execute the control program and manage controller operations
C. To detect every physical condition directly
D. To replace all field devices
Show Answer and Explanation
Q2. Which is a typical digital input device?
A. Push button
B. Motor shaft
C. Machine foundation
D. Conveyor belt
Show Answer and Explanation
Q3. Which signal category is commonly used for a varying pressure measurement?
A. Digital output only
B. Analogue input, when the transmitter and module are compatible
C. Mechanical output only
D. HMI display output only
Show Answer and Explanation
Q4. Which statement about a PLC output is correct?
A. Every output can directly operate any motor
B. Output specifications and suitable interfacing must be checked
C. Outputs never need external control equipment
D. An output command guarantees machine movement
Show Answer and Explanation
Q5. What is a key characteristic of a compact PLC?
A. It cannot execute programs
B. It integrates several controller functions into one unit
C. It always has more I/O than a modular system
D. It does not need a power supply
Show Answer and Explanation
Q6. What should you do if the PLC input does not change when a sensor detects an object?
A. Immediately replace the CPU
B. Bypass the input circuit
C. Follow the safe diagnostic procedure and investigate the signal path
D. Assume the program is incorrect
Show Answer and Explanation
12. Short Viva Questions
- What is PLC architecture?
- What is the function of the CPU?
- What is the difference between a digital input and an analogue input?
- Why must the output rating be checked before connecting a load?
- What is the difference between compact and modular PLCs?
- What is the role of a communication interface?
- Why might an analogue value need scaling?
- Why should a technician consult the exact controller manual?
- Can a commanded output guarantee that a machine has moved?
- What information should be recorded during fault diagnosis?
13. Viva Answer Key
- PLC architecture describes the arrangement and interaction of the controller's functional components.
- The CPU executes the control program and manages controller operations.
- A digital input receives a discrete signal; an analogue input receives a varying measurement signal.
- To ensure that the output is electrically compatible with the load and application.
- A compact PLC integrates several functions into one unit, while a modular PLC uses separate compatible modules.
- It allows the PLC to exchange data with compatible devices.
- Scaling converts a raw signal value into a meaningful engineering value.
- Hardware layouts, ratings, wiring requirements and supported functions vary by model.
- No. The external circuit, control equipment, actuator and mechanical system must also function correctly.
- Record observed conditions, relevant signal states, diagnostic steps, evidence and the confirmed or suspected cause.
14. Key Takeaway
A PLC is one part of a complete control system.
To understand industrial automation, follow the complete signal path:
Field Device → Input Interface → CPU and Program → Output Interface → Control Equipment → Machine Response
Understanding the function of each stage—and what can go wrong at each stage—is an important foundation for practical automation skills.
What Should You Learn Next?
PLC Fundamentals — Lesson 3: Digital Inputs and Outputs
In the next lesson, we will study signal states, input/output documentation, interfacing considerations and practical troubleshooting examples.
Continue building your knowledge through the Nitish Atlas practical technical education learning pathway.
15. Technical References
- DGT — Manufacturing Process Control and Automation Technician Curriculum
- Siemens — SIMATIC S7-1200 PLC Product Information
- Rockwell Automation — Programmable Controllers
Use the relevant manufacturer's documentation for model-specific specifications, terminal identification, wiring requirements, programming instructions and safety information.

ConversionConversion EmoticonEmoticon