PLC Automation: A Beginner's Guide – programmable logic controller in an industrial control panel

What Is a PLC? A Beginner's Guide to PLCs and Industrial Automation

A modern factory line, a pressurised water system or an automatic borehole and tank setup all have one thing in common: something has to watch the sensors and switch the equipment on and off without a person standing there. In industrial installations, that job usually falls to a PLC – a Programmable Logic Controller.

This guide explains what a PLC is, the parts of a PLC system, how they connect, and how to work on them safely. It's written for electricians, apprentices and technicians starting out in automation.

What is a PLC?

A PLC is a rugged computer built for one job: controlling machines and processes. Unlike an office PC, it is designed to keep running for years in conditions that would kill a normal computer – electrical noise, vibration, heat and cold, dust and round-the-clock operation.

Every PLC works on the same simple principle:

INPUT → PROCESSING → OUTPUT

The PLC reads signals from input devices (sensors, switches, buttons), runs its program, and switches output devices (contactors, relays, valves, lights) in response.

A water tank example

Here's a job most South African installers will recognise – keeping a storage tank full automatically:

  1. A level sensor in the tank detects that the water is low.
  2. It sends a signal to a PLC input.
  3. The PLC's program switches on the output that runs the pump.
  4. When the tank is full, the sensor changes state and the PLC switches the pump off.

No one has to touch a switch. For a single tank, a dedicated liquid level controller relay with stainless steel level probes or a float switch may be all you need. Once you add timers, a second pump, alarms or dry-run logic, a small PLC such as the GIC mini PLC / smart relay gives you far more flexibility.

The main parts of a PLC

Part What it does Zisabo range
Power supply Feeds the PLC and control circuit. Many industrial control circuits run on 24 VDC; 230 VAC supplies are also common. Mean Well DIN rail power supply MDR-20, enclosed power supplies
CPU The brain: reads inputs, runs the program, makes decisions, sets outputs and watches for some faults. GIC mini PLC, 8-I/O extender
Input modules Receive signals from buttons, limit switches, proximity, temperature, pressure and level sensors. See sensors below
Output modules Drive relays, contactors, solenoid valves, indicator lights, alarms and VSDs. See relays and contactors below
Communication Ports and networks such as Ethernet, Modbus, PROFINET, PROFIBUS and EtherNet/IP link the PLC to HMIs, computers and other PLCs. GSM alarm module for PLC

Digital vs analogue signals

Digital (discrete) signals have only two states: ON (1) or OFF (0). A button is pressed or not, a door is open or closed, a level switch is made or not.

Analogue signals vary continuously and represent a measurement – temperature, pressure, level, flow or speed. The common industrial standards are 0–10 VDC, 4–20 mA and 0–20 mA.

For example, a pressure transmitter might output 4 mA at 0 bar and 20 mA at 10 bar. The PLC reads the current and converts it back into a pressure reading.

Equipment you'll find in a PLC system

A PLC never works alone. It sits at the centre of a control panel full of other equipment.

Sensors

Sensors turn physical conditions into electrical signals:

Browse all sensors, timers and controllers.

Push buttons, selector switches and emergency stops

These are how the operator gives commands: start, stop, manual/auto, forward/reverse.

Relays

A relay is a switch operated by a small control signal. In PLC panels, relays interface PLC outputs with external equipment, isolate control circuits and drive contactors.

Contactors

Contactors are heavy-duty relays built to switch power loads – especially motors. The PLC switches the contactor coil (directly or through an interposing relay), and the contactor switches the motor supply.

Motor protection

Motors need protection against overloads and faults – and PLC logic does not replace it. Typical devices:

Variable speed drives (VSDs)

A VSD (also called a VFD) controls the speed of a single- or three-phase AC motor. A PLC can start and stop the drive, set its speed, change direction where supported, and read back faults. VSDs are already common in water systems – constant-pressure boosters like the Speroni VSD auto pressurisation system use one to hold steady pressure. For panel-mounted drives, see the N700E VSD panel operator.

Solenoid valves

Solenoid valves open and close electrically to control water, air or gas. A PLC output energises the coil. In irrigation, 24 V valves such as the Orbit solenoid valve are a familiar example.

HMI – Human Machine Interface

An HMI is the screen an operator uses to see machine status, temperatures, pressures, production counts and alarms, and to start, stop or adjust permitted settings. For small projects and learning, a touch display like the Nextion 2.4" HMI is a good starting point.

How it all works together: a conveyor example

Picture a conveyor that must move a product to a set position and stop:

  1. A photoelectric sensor sees the product arrive.
  2. Its signal reaches a PLC input.
  3. The PLC program processes it and switches an output.
  4. That output operates a relay or contactor, which starts the conveyor motor.
  5. A second sensor detects the product at its destination.
  6. The PLC switches the motor off.

A real installation adds an emergency stop circuit, motor overload protection, an HMI showing conveyor status, a fault alarm and often a VSD to control speed. Swap "conveyor" for "pump" and "product sensor" for "pressure or level sensor" and you have most water and borehole automation.

A first look at PLC programming

A PLC does nothing until it is programmed. The most common language is Ladder Logic (LAD), which looks like the relay wiring diagrams electricians already know. It uses symbols for:

  • Normally open (NO) and normally closed (NC) contacts
  • Output coils
  • Timers and counters
  • Set and reset instructions
  • AND and OR logic

The classic first program is a motor start/stop with a latch: press START and the motor runs; release START and it keeps running because the output "holds itself in"; press STOP and it stops. The PLC checks these conditions continuously, many times a second.

Remember: a program is never a substitute for properly designed electrical protection and safety circuits.

Working safely on PLC systems

  1. Don't work on live equipment unless you're authorised and following an approved procedure.
  2. Isolate supplies before maintenance, and use lockout/tagout where required.
  3. Prove the circuit is dead with a suitable tester, such as a UNI-T auto-ranging multimeter.
  4. Confirm the correct voltage before connecting anything, and observe polarity on DC supplies.
  5. Never exceed the voltage or current rating of PLC inputs and outputs.
  6. Fit the correct fuses and circuit protection.
  7. Earth and shield properly where required.
  8. Never bypass a safety device or alter a safety circuit without authorisation.

Important: emergency stops, safety interlocks and other functions that protect people must use correctly designed, safety-rated systems. A standard PLC is not automatically a safety controller. Always follow the manufacturer's instructions and the applicable electrical and machinery safety standards.

Basic fault-finding

Work methodically. Start with what the machine is (or isn't) doing:

Symptom Check first
PLC not running Power supply, fuses, PLC status LEDs
Input not registering Sensor supply, wiring, input LED
Output not switching Program conditions, interlocks, output LED
Motor won't start Contactor, overload, protection devices, supply
Sensor acting up Alignment, wiring, sensitivity settings
No communication Network cables, configuration, connections
Machine behaving oddly Program conditions, sensor signals, alarm history

Learn to read the PLC's status LEDs and the panel drawings before changing a program. And never force an output or bypass an interlock just to get a machine running.

A learning path for new electricians

Stage Topic Goal
1 Electrical fundamentals AC, DC, voltage, current and resistance
2 Control circuits Relays, contactors and motor starters
3 Sensors Recognise and wire common industrial sensors
4 PLC fundamentals Inputs, outputs and how the CPU works
5 PLC programming Basic Ladder Logic
6 Motor control PLC-controlled contactors and VSDs
7 HMIs Operator screens and alarms
8 Troubleshooting Systematic fault-finding

Combine theory with hands-on practice wherever you can. A small bench rig – a 24 V DIN rail power supply, a mini PLC, a selector switch, a proximity sensor, a relay and some pilot lights on DIN rail terminals – teaches more than any textbook.

The big idea

Everything in automation follows one chain: a sensor detects a condition → the PLC processes it → an output switches equipment → the machine acts. Understand that, and the advanced topics become far easier.

You don't need to be a PLC programmer on day one. Start by understanding the equipment, how it's wired, how it works, and how to find basic faults safely.

Building a control panel or automating a pump system? Zisabo stocks mini PLCs, relays, contactors, sensors, power supplies and panel hardware. Browse contactors, relays and motor control or electrical and electronics, or contact us for help putting together a parts list.

This guide is adapted from Mantech's Introduction to PLCs and Industrial Automation. Zisabo is one of Mantech's listed distributors.

Related: Why Does My Earth Leakage Keep Tripping? · Surge Protection for Your Home, Pumps and Solar · Booster Pump for a JoJo Tank

Back to blog