What is a PLC?
A programmable logic controller is an industrial computer designed to read field inputs, execute deterministic control logic and command outputs. It replaces large relay-logic panels for many control tasks while adding timers, counters, analog processing, diagnostics and communication.
The scan cycle in detail
| Stage | What happens | What the programmer sees |
|---|---|---|
| Input update | Physical input states are copied to an input image/table. | Logic reads a consistent snapshot for that scan. |
| Program execution | Rungs/functions execute in program order. | Internal bits, timers, counters and output image change. |
| Output update | Output image is transferred to physical outputs. | Relays, lamps or commands change state. |
| Housekeeping | Diagnostics, communications and OS tasks run. | Scan-time and fault status update. |
Digital vs analog I/O
DI — Digital Input
Two-state signal such as ON/OFF, healthy/tripped, open/closed.
24 VDCPNP/NPN checkDO — Digital Output
Commands a relay, lamp, solenoid or drive input. Check transistor/relay/triac type and current rating.
AI/AO — Analog
Continuous values such as 4–20 mA pressure or analog speed reference.
Typical addressing
How a PLC controls a motor
What you should understand first
A PLC separates sensing, decision logic and actuation. The key mental model is that field inputs become data, the program evaluates that data, and outputs become commands.
Signal and energy boundaries
A PLC is a controller, not the power source for a motor. Separate the low-energy logic side from the field power circuit. Digital outputs often command an interposing relay, contactor coil, valve solenoid or VFD input. The motor power still passes through the MCC/MCCB/contactor/VFD power circuit.
Fail-safe thinking
For critical shutdowns, do not rely only on software logic. Emergency-stop, trip and safety functions may require dedicated safety-rated hardware and a risk assessment. A normal PLC output should not be assumed to provide a safety function unless the architecture is specifically designed and certified for it.
Common mistakes
- Treating a PLC output as if it can directly power any contactor or solenoid
- Ignoring common/0 V references and PNP/NPN input type
- Using software only for an emergency-stop function without a safety assessment
- Forgetting output-state behavior during CPU fault or power loss
- No spare I/O or terminal allowance
Commissioning checklist
- Verify controller supply voltage and earthing.
- Check every field device voltage/current and signal type.
- Create an I/O list before writing logic.
- Force/test one point at a time during commissioning under controlled conditions.
- Verify trip/fail-safe behavior by simulation and documented tests.
Frequently asked questions
Does a PLC continuously read inputs?
It repeats a scan cycle. Exact input/output update behavior depends on the controller and task structure.
Can a PLC output drive a contactor directly?
Sometimes electrically possible for a small coil, but an interposing relay is often used for isolation, serviceability and output protection. Check ratings and suppression requirements.
What happens when the PLC loses power?
Outputs typically de-energize, but exact behavior and retained memory depend on hardware/configuration. Design the process to reach a defined safe state.
GGSTech Tools