Bird
Raised Fist0
PLC Programmingscripting~5 mins

PLC hardware architecture (CPU, I/O, power supply) in PLC Programming

Choose your learning style10 modes available
Introduction

A PLC controls machines by using hardware parts like the CPU, input/output (I/O), and power supply. Understanding these parts helps you know how the PLC works.

When setting up a new machine control system.
When troubleshooting why a machine is not responding.
When adding sensors or motors to a PLC system.
When learning how automation equipment works.
When designing a control system for a factory process.
Syntax
PLC Programming
PLC Hardware Architecture:
- CPU: Brain of the PLC, processes instructions.
- Input Modules: Receive signals from sensors or switches.
- Output Modules: Send signals to motors, lights, or valves.
- Power Supply: Provides electricity to all parts.

The CPU runs the program and controls the whole system.

I/O modules connect the PLC to the outside world.

Examples
This shows how the CPU reads an input and controls an output.
PLC Programming
CPU: Processes logic and controls outputs.
Input: Button press detected.
Output: Motor starts running.
The power supply keeps the PLC running safely.
PLC Programming
Power Supply: Converts AC power to DC for PLC use.
Input modules bring real-world data into the PLC.
PLC Programming
Input Module: Reads sensor signals like temperature or position.
Output modules send commands from the PLC to machines.
PLC Programming
Output Module: Controls devices like alarms or conveyor belts.
Sample Program

This script lists the main PLC hardware parts and what they do. It helps beginners see the role of each part clearly.

PLC Programming
/* This is a simple PLC hardware description script */

// Define PLC parts
const CPU = {
  name: "CPU",
  function: "Processes instructions and controls outputs"
};

const InputModule = {
  name: "Input Module",
  function: "Receives signals from sensors or switches"
};

const OutputModule = {
  name: "Output Module",
  function: "Sends signals to motors, lights, or valves"
};

const PowerSupply = {
  name: "Power Supply",
  function: "Provides power to the PLC system"
};

// Print each part and its function
console.log(`${CPU.name}: ${CPU.function}`);
console.log(`${InputModule.name}: ${InputModule.function}`);
console.log(`${OutputModule.name}: ${OutputModule.function}`);
console.log(`${PowerSupply.name}: ${PowerSupply.function}`);
OutputSuccess
Important Notes

PLC hardware parts work together to control machines automatically.

Always check power supply voltage matches your PLC requirements.

Input and output modules come in different types depending on the signals used.

Summary

The CPU is the brain of the PLC.

Input modules bring information from sensors to the PLC.

Output modules send commands to machines.

The power supply keeps everything running.

Practice

(1/5)
1. Which part of a PLC acts as the brain, processing all instructions?
easy
A. Input module
B. Power supply
C. CPU
D. Output module

Solution

  1. Step 1: Understand the role of CPU in PLC

    The CPU processes instructions and controls the PLC operation.
  2. Step 2: Compare with other parts

    Power supply provides energy, input modules receive signals, output modules send commands.
  3. Final Answer:

    CPU -> Option C
  4. Quick Check:

    CPU = Brain of PLC [OK]
Hint: CPU is the brain that thinks and controls [OK]
Common Mistakes:
  • Confusing power supply with CPU
  • Thinking input module processes data
  • Mixing output module with CPU
2. Which of the following is the correct symbol for the power supply in a PLC diagram?
easy
A. A box labeled 'PS' or 'Power Supply'
B. A circle labeled 'I/O'
C. An arrow pointing to output devices
D. A rectangle labeled 'CPU'

Solution

  1. Step 1: Identify common PLC diagram symbols

    Power supply is usually shown as a box labeled 'PS' or 'Power Supply'.
  2. Step 2: Eliminate other options

    CPU is labeled 'CPU', I/O is not a circle, arrows show signal flow not power supply.
  3. Final Answer:

    A box labeled 'PS' or 'Power Supply' -> Option A
  4. Quick Check:

    Power supply symbol = Box labeled PS [OK]
Hint: Power supply is labeled 'PS' in diagrams [OK]
Common Mistakes:
  • Choosing CPU box as power supply
  • Confusing arrows with power supply
  • Thinking I/O is power supply symbol
3. Given a PLC with 8 input sensors connected to the input module and 6 output devices connected to the output module, what is the total number of I/O points?
medium
A. 48
B. 8
C. 6
D. 14

Solution

  1. Step 1: Understand I/O points

    I/O points are the sum of input points and output points connected to the PLC.
  2. Step 2: Calculate total I/O points

    8 inputs + 6 outputs = 14 total I/O points.
  3. Final Answer:

    14 -> Option D
  4. Quick Check:

    8 + 6 = 14 I/O points [OK]
Hint: Add input and output counts for total I/O [OK]
Common Mistakes:
  • Counting only inputs
  • Counting only outputs
  • Multiplying inputs by outputs
4. A PLC system is not powering on. Which of the following is the most likely hardware issue?
medium
A. Faulty CPU
B. Disconnected power supply
C. Broken output module
D. Input module error

Solution

  1. Step 1: Analyze symptoms

    PLC not powering on means no power is reaching the system.
  2. Step 2: Identify hardware responsible for power

    The power supply provides energy; if disconnected or faulty, PLC won't start.
  3. Final Answer:

    Disconnected power supply -> Option B
  4. Quick Check:

    No power = Power supply issue [OK]
Hint: No power means check power supply first [OK]
Common Mistakes:
  • Blaming CPU when no power
  • Assuming output module stops power
  • Ignoring power supply connection
5. You need to expand a PLC system to control 12 new sensors and 10 new actuators. Which hardware components must you add to the existing PLC setup?
hard
A. Add input and output modules
B. Add more CPU units
C. Add extra power supplies only
D. Replace the existing CPU with a bigger one

Solution

  1. Step 1: Identify hardware for sensors and actuators

    Sensors connect to input modules; actuators connect to output modules.
  2. Step 2: Determine what to add

    To handle more devices, add input modules for sensors and output modules for actuators.
  3. Step 3: Consider CPU and power supply

    CPU usually handles more modules without replacement; power supply may need upgrade but not always.
  4. Final Answer:

    Add input and output modules -> Option A
  5. Quick Check:

    More devices = Add I/O modules [OK]
Hint: Add I/O modules to handle more devices [OK]
Common Mistakes:
  • Thinking CPU must be replaced
  • Adding only power supplies
  • Adding CPU units instead of modules
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard