HERRITECH VENTURES LTDDairy, vending and industrial systems

Home › Guides › Machine control

What Is a PLC and How Does It Control a Machine?

Herritech engineering teamUpdated 24 November 20264 min read

What Is a PLC and How Does It Control a Machine?
Pictured: H-TECH PLC board (ATmega328P controller) and H-TECH RO / UF PLC Control Panels with Touch HMI.
Quick answer: A PLC (programmable logic controller) is a rugged industrial computer that runs a machine. It reads inputs (buttons, float switches, pressure and temperature sensors), runs a program written by the engineer, and switches outputs (pumps, valves, heaters, alarms) many times a second. PLCs replace boxes of relays and timers, make machines safer and easier to change, and are used in water plants, milk pasteurisers, filling lines and vending machines.
Key facts
  • Inputs → program → outputs
  • Replaces relays and timers
  • Ladder logic programming
  • Price depends on I/O count
On this page
  1. What Is a PLC in Electrical and Automation Work?
  2. How a PLC Works: The Scan Cycle
  3. Parts of a PLC
  4. Where PLCs Are Used in Kenyan Machines
  5. How Is a PLC Programmed?
  6. PLC Price Factors in Kenya
  7. Mistakes to Avoid
  8. Frequently asked questions

What Is a PLC in Electrical and Automation Work?

Before PLCs, machines were controlled by panels full of relays, timers and hand-wired logic. Changing the sequence meant rewiring. A PLC does the same job in software: the wiring only connects sensors and loads, and the sequence lives in a program that can be changed, copied and backed up. In manufacturing, "PLC" almost always means this controller; in business, PLC also means a public limited company, which is unrelated.

How a PLC Works: The Scan Cycle

  1. Read inputs: the PLC checks every input (is the tank full? is the start button pressed? what is the temperature?).
  2. Run the program: it works through the logic from top to bottom.
  3. Write outputs: it switches relays or transistors to start pumps, open valves or sound alarms.
  4. Repeat: the whole cycle runs many times a second, so the machine reacts almost instantly.

Parts of a PLC

PartWhat it does
CPURuns the program and timers
Digital inputsOn/off signals: buttons, float switches, limit switches
Analogue inputsMeasurements: temperature, pressure, level, flow (4–20 mA or 0–10 V)
OutputsRelay or transistor outputs to contactors, valves, buzzers
Power supplyUsually 24 V DC from a panel supply
CommunicationProgramming port, screen (HMI), GSM or network modules

Where PLCs Are Used in Kenyan Machines

Controller and GSM parts with listed prices

Current listed prices incl. VAT (updated 24 November 2026).

How Is a PLC Programmed?

Industrial PLCs use the IEC 61131-3 languages, most often ladder logic, which looks like an electrical relay diagram, plus function blocks and structured text. The engineer writes the program on a laptop, downloads it to the PLC, tests each input and output, and saves a backup. The H-TECH PLC board from Herritech is programmed from a browser using the Controller Lab, with ready projects for water vending, pumps, tanks and GSM control.

PLC Price Factors in Kenya

For water plants, see the ready RO / UF PLC control panels with touch HMI. For a full panel explanation read motor control panels and contactors.

Safety: control panels, contactors, motor circuits and anything on 240/415 V must be designed, wired and tested by a qualified electrician. Isolate and lock off power before opening a panel. This guide helps you plan and ask the right questions.

Mistakes to Avoid

Watch: RO purifiers and water ATMs

Water ATM, bottle rinser and RO water purifierVideo · 1:16 · Herritech Ventures on YouTube
H-TECH 500 LPH 3-in-1 RO vending machineVideo · 0:23 · Herritech Ventures on YouTube

Frequently asked questions

What is a PLC in simple terms?

A rugged industrial computer that reads sensors and switches, runs a program, and controls pumps, valves and motors.

What is a PLC used for?

Automating machines and processes: water plants, pasteurisers, filling lines, vending machines and pump stations.

What language is used to program a PLC?

Mostly ladder logic, plus function block diagram and structured text (IEC 61131-3).

How much is a PLC in Kenya?

It depends on the number of inputs and outputs, screen and communication options; ask for a quotation with your machine’s I/O list.

Is a PLC better than relays?

Yes for anything beyond a simple start/stop: it is easier to change, diagnose and back up.

↑ Back to top
Get quoteWhatsAppCall