# What Is a PLC? Programmable Logic Controller Basics and Uses

> What a PLC is, what is inside it, how the scan cycle reads inputs and drives outputs, fixed and modular types, IEC 61131-3 languages and where PLCs are used.

Web page: https://motionwell.com.sg/blog/what-is-a-plc/
Last updated: 2026-12-02
Publisher: Motionwell Automation Pte. Ltd., Singapore

You open a machine's control cabinet and see a row of grey modules with blinking lights and hundreds of wires. A fault light is on, and someone says "check the PLC". This guide explains what a **PLC** is and how it runs a machine, in plain words. It also shows what to send when a machine in your plant needs new [PLC programming](https://motionwell.com.sg/capabilities/plc-programming-services/index.md) or a controller upgrade.

## What Is a PLC?

A **PLC (programmable logic controller)** is an industrial computer that controls a machine or a process. It reads signals from sensors and switches, runs a program written for that machine, and switches motors, valves, heaters and lights. In 1968, General Motors asked for an electronic replacement for relay controls, and the Modicon 084 followed in 1969. PLCs now run machines in almost every kind of factory.

> "A Programmable Logic Controller (PLC) is a specialized hardware designed to manage control tasks in industrial settings."
>
> Source: [Omron Industrial Automation, Programmable Logic Controllers](https://industrial.omron.eu/en/products/programmable-logic-controllers)

The name explains the job. **Programmable** means engineers can change what it does by loading a new program. **Logic** means it makes decisions such as "if the door is closed and the start button is pressed, run the motor". **Controller** means it drives the machine.

A PLC is built for the factory floor. It works in heat, dust, vibration and electrical noise that would stop an office computer. It also has a large number of terminals for field wiring, so one controller can connect to hundreds of devices.

## What Is Inside a PLC?

![Labelled diagram of a modular PLC on a rail with a power supply, CPU, digital input, digital output, analogue and communication modules, and a laptop connected by a cable](https://motionwell.com.sg/images/blog/what-is-a-plc-parts.webp)

*The main modules of a PLC and the laptop used to load its program*

A PLC is made of a few standard parts. On a small PLC they sit in one box. On a larger PLC each part is a separate module clipped onto a rack or rail.

- **Power supply:** converts the mains supply to the low DC voltage the modules use, such as 24 V DC.
- **CPU (processor):** runs the control program and makes every decision.
- **Memory:** stores the program and the data. The program stays in memory when the power is off.
- **Input modules:** receive signals from buttons, sensors and switches.
- **Output modules:** send signals to motor starters, valves, lamps and alarms.
- **Communication ports:** connect the PLC to touchscreens, drives, other PLCs and plant computers. Common ports are Ethernet, USB, RS-232 and RS-485.

The program is written on a laptop or desktop computer with the maker's software. The engineer then downloads it to the PLC through a cable or the network. Most programming software can also simulate the program, so engineers test it before it reaches the machine.

## How Does a PLC Work? The Scan Cycle

![Circular diagram with four numbered steps of a PLC scan: read inputs, run the program, write outputs, and housekeeping and communication, with arrows looping back to the start](https://motionwell.com.sg/images/blog/what-is-a-plc-scan-cycle.webp)

*The classic PLC scan cycle, repeated for as long as the PLC is in run mode*

A **classic PLC runs its program in a repeating loop called the scan cycle**. In each scan, it reads every input, works through the program from top to bottom and then updates every output. Then it starts again.

The four steps below are the classic model. Some controllers, such as the Rockwell Logix 5000 family, update their I/O on a separate schedule, so an input value can change in the middle of a program scan.

1. **Read inputs:** the PLC checks every input and stores its state, for example "start button pressed" or "tank level 62%".
2. **Run the program:** the CPU works through the logic line by line, using the stored input states.
3. **Write outputs:** the PLC switches outputs on or off to match the results, for example "motor on" or "alarm off".
4. **Housekeeping:** the PLC runs its self-checks and exchanges data with screens and other devices.

Scan time depends on the controller, the program and the communication load. The loop repeats without a break, so the machine reacts to a pressed button almost at once.

**Rule of Thumb:** a very short sensor pulse can be missed. Whether a pulse is caught depends on the input update time, the input filter and how the program tasks are set up. Fast pulses go to a high-speed counter input built for that job.

## What Are PLC Inputs and Outputs?

**PLC inputs and outputs (I/O) are the connections between the controller and the machine.** Inputs carry information into the PLC. Outputs carry commands out to the machine.

Each signal is either digital or analogue. A **digital signal** has only two states, on or off, like a light switch. An **analogue signal** can take any value in a range, like a dimmer switch. Analogue signals carry readings such as temperature, pressure, speed and level, sent as signals such as 4 to 20 mA or 0 to 10 V.

| Signal | Input examples | Output examples |
|---|---|---|
| Digital | Push buttons, limit switches, proximity sensors, door switches | Motor starters, solenoid valves, warning lights, buzzers |
| Analogue | Temperature sensors, pressure transmitters, flow meters, load cells | Drive speed setpoint, proportional valve, heater power |

Many newer devices skip separate wires for every signal. A drive or a robot connects to the PLC over an industrial network and sends many values on one cable. An **IO-Link sensor** connects point to point to an IO-Link master through a standard sensor cable, and the master passes its values to the PLC over the network. Our guide to the IO-Link master explains how that works.

## What Is the Difference Between Fixed and Modular PLCs?

![Two panels: on the left a single compact controller box with terminals on top and bottom clipped to a rail, on the right a power supply, a CPU and five slim I/O modules clipped side by side on a longer rail](https://motionwell.com.sg/images/blog/what-is-a-plc-fixed-vs-modular.webp)

*A fixed PLC keeps everything in one box, and a modular PLC grows one module at a time*

A **fixed PLC**, also called a compact or brick PLC, has its CPU, power supply and a set number of inputs and outputs in one housing. A **modular PLC** has a rack or rail where you add the modules you need.

| Point | Fixed (compact) PLC | Modular PLC |
|---|---|---|
| Size | Small, fits in a small panel | Larger, needs more panel space |
| I/O count | Set at purchase, a few expansion units | Grows by adding modules, up to thousands of points |
| Cost | Lower | Higher |
| Fault finding | Replace the whole unit | Swap the one faulty module |
| Good fit | Single machines and simple tasks | Production lines, large machines, many axes |

A compact PLC suits a machine with a fixed job, such as a small conveyor or a pump skid. A modular PLC suits a line that will grow, because you add I/O and network modules later.

## How Is a PLC Programmed?

**PLCs are programmed in the languages set by IEC 61131-3**, the international standard for programmable controller languages. The current 2025 edition defines three languages: ladder diagram, function block diagram and structured text. It also defines sequential function chart as a set of elements for organizing programs into steps. Most makers follow the standard, so an engineer who knows one brand learns another faster.

| Language or element | What it looks like | Common use |
|---|---|---|
| Ladder diagram (LD) | Rungs of contacts and coils, like a relay circuit drawing | Machine sequences, interlocks |
| Function block diagram (FBD) | Blocks joined by lines | Analogue control, PID loops |
| Structured text (ST) | Text code similar to Pascal | Maths, recipes, data handling |
| Sequential function chart (SFC), organizing elements | Steps and transitions | Machine steps in a fixed order |
| Instruction list (IL), earlier editions only | Short text instructions | Programs written for older controllers |

![Two panels side by side: on the left a relay circuit with a start button, stop button and motor coil wired together, on the right the same logic drawn as one rung of ladder diagram](https://motionwell.com.sg/images/blog/what-is-a-plc-ladder-logic.webp)

*Ladder diagram copies the look of a relay circuit, so electricians can read it*

**Ladder diagram is the most widely used PLC language.** It was designed to look like the relay circuit drawings that electricians already knew. Each rung reads from left to right. When the contacts on the left are true, the coil on the right switches on.

Programs are not fully portable between brands. Each maker uses its own software, such as TIA Portal for Siemens and Studio 5000 for Allen-Bradley, and its own way of addressing I/O. Moving a program to a new brand means converting and retesting it. Our comparison of Siemens and Allen-Bradley PLCs covers the two platforms most plants use.

**Pro Tip:** keep a copy of the PLC program, the software version and the I/O list with the machine file. Without a program backup, even a small change starts with reading the machine wiring by hand.

## Why Did Factories Move From Relays to PLCs?

**Factories moved to PLCs because changing a relay panel meant rewiring it, and changing a PLC only means loading a new program.** Before PLCs, machine logic was built from relays, timers and drum sequencers wired together. A new product or a new step meant days of rewiring and new drawings.

In 1968, the Hydramatic division of General Motors asked for an electronic replacement for hard-wired relay systems. The winning design became the Modicon 084, built in 1969, and Dick Morley, one of its engineers, is called the father of the PLC. One of the first units ran at General Motors for nearly twenty years before it was retired.

PLCs gave plants four things relay panels could not:

- **Changes in software:** new logic is loaded in minutes, with no rewiring.
- **Reliability:** no moving contacts in the logic, so fewer parts wear out.
- **Diagnostics:** the PLC shows which input or output is on, which shortens fault finding.
- **Space:** one PLC replaces a wall of relays.

## How Does a PLC Work With HMI and SCADA?

![Three-level diagram: sensors, motors and valves at the bottom wired to a PLC in the middle, a touchscreen panel beside the machine, and a SCADA computer screen at the top linked by network lines](https://motionwell.com.sg/images/blog/what-is-a-plc-control-layers.webp)

*The PLC sits between the machine and the screens people use to watch it*

**A PLC runs the machine, an HMI lets operators control it, and SCADA watches many machines from one place.** The three work together over a network.

- **HMI (human-machine interface):** a touchscreen on the machine. Operators start and stop it, change settings and read alarms. The HMI reads and writes data inside the PLC.
- **SCADA (supervisory control and data acquisition):** software on a computer that collects data from many PLCs, stores trends and shows the whole plant or line.

The PLC keeps running if the HMI or SCADA screen fails, because the control program lives in the PLC. Our guides to SCADA and HMI and PROFINET and EtherNet/IP explain the screens and the networks in more detail.

## PLC vs Microcontroller, Industrial PC and PAC

A **PLC is one of several controllers** used in machines. The right one depends on the job, the volume and who will maintain it.

| Controller | What it is | When it fits |
|---|---|---|
| PLC | Hardened controller with field I/O and a repeating scan | Machines and lines maintained by plant technicians |
| Microcontroller | Single chip on a custom circuit board | Products made in high volume, such as appliances |
| Industrial PC | Hardened PC running Windows or Linux | Vision, databases and heavy data work beside a PLC |
| PAC (programmable automation controller) | PLC with PC-level computing and memory | Large machines with motion, data and many networks |
| DCS (distributed control system) | Plant-wide process control system | Continuous process plants such as chemicals and power |

A microcontroller is cheap per unit, and it needs custom electronics and code for every design. A PLC comes with documented I/O, tools and long-term spare parts, so a plant engineer can fault-find it years later. We compare the other options in our guides to industrial PCs and PLCs and DCS, PLC and SCADA.

## Where Are PLCs Used?

**PLCs are used wherever a machine has to repeat a sequence and react to sensors.** Common jobs include:

- **Conveyors and packaging lines:** starting belts, counting packs and rejecting faulty ones.
- **Assembly machines:** moving parts between stations in order, with interlocks at every step.
- **Temperature and pressure control:** holding a heater, an oven or a tank at its setpoint.
- **Robot cells:** telling a robot when a part is ready and when the guard is closed.
- **Test stations:** starting each test, collecting the result and passing or rejecting the part.
- **Building and utility systems:** pumps, chillers, air handling and water treatment.

Machine safety functions, such as emergency stops and guard door monitoring, run on a suitable safety relay or a **safety PLC**, with safety-rated I/O where the design needs it. The risk assessment for the machine decides which one fits. Our guide to the safety PLC explains when you need one.

## PLC Programming and Upgrades for Singapore Machines

Motionwell writes and changes PLC programs for machines in Singapore plants. We work on Allen-Bradley, Siemens, Omron, Mitsubishi and Beckhoff controllers. Replacing PLCs, servo drives, VFDs and HMIs on machines that are mechanically sound is a main line of our work.

In 2026 we took on an Omron controller upgrade that merged a new machine section into the existing PLC and reused compatible I/O. On another job, we added handling and dispensing modules to a running assembly line and monitored the new guard doors through EtherNet/IP safety I/O.

Before a program reaches your machine, we test it with simulated signals. You receive the source program with comments, an I/O list and a backup. When the controller itself is out of production, our [PLC migration and upgrade](https://motionwell.com.sg/capabilities/plc-migration-upgrade/index.md) service moves the program to a current model.

**Need a PLC change on a machine?** [Send us the details](https://motionwell.com.sg/contact/index.md). Include the PLC brand and model, a copy of the program if you have one, the electrical drawings or I/O list, and a short note on what the machine must do differently.

## Frequently Asked Questions

### What does PLC stand for?

PLC stands for programmable logic controller. It is an industrial computer that reads signals from sensors and switches, runs a program written for the machine and switches motors, valves and lights on and off.

### Is a PLC a computer?

Yes, a PLC is a computer built for factory control. It has a processor, memory and a power supply like any computer. A PLC is hardened against heat, dust and electrical noise, and it repeats one control program in a fast, predictable loop.

### What language is used to program a PLC?

PLCs are programmed in the languages of the IEC 61131-3 standard. The 2025 edition defines ladder diagram, function block diagram and structured text, plus sequential function chart elements for organizing a program into steps. Ladder diagram is the most widely used. Instruction list appears in programs written to earlier editions.

### What is the difference between a PLC and an HMI?

A PLC is the controller that runs the machine. An HMI is the touchscreen or panel that operators use to see the machine status and send commands. The HMI reads and writes data in the PLC over a network cable.

### How long does a PLC last?

A PLC can run a machine for decades. One of the first Modicon 084 controllers ran at General Motors for nearly twenty years before it was retired. Spare parts and software support end earlier, so plants plan a controller migration when a model goes out of production.

### Can an old PLC be replaced without replacing the machine?

Yes, an old PLC can be replaced on a machine that is mechanically sound. The program is moved to a current controller, compatible I/O is reused where possible and the machine is tested with simulated signals before it runs again.


