pull down to refresh

A PLC is a rugged industrial computer that repeatedly turns field conditions into controlled actions. Unlike a normal PC, it is designed for electrical noise, vibration, temperature changes, 24/7 operation and predictable timing.

A simplified PLC scan looks like this:

  1. Read inputs and copy their states into an input image/table.
  2. Execute the program (ladder logic, function blocks, structured text, etc.).
  3. Write the calculated output states to the output modules.
  4. Run communications/diagnostics and repeat—typically every few milliseconds.

That repetition is important: the PLC is not “running a script once”; it is continually asking, “What is true now, and what should the machine do next?”

Typical inputs

  • Digital: Start/Stop buttons, limit switches, photoeyes, proximity sensors, overload contacts, low/high level switches.
  • Analog: 4–20 mA pressure/flow/level transmitters, temperature sensors through a transmitter, 0–10 V signals.
  • Networked data: a VFD’s speed/current/fault status or measurements from remote I/O.

Typical outputs

  • Digital: indicator lamps, alarms, contactor coils and solenoid valves.
  • Analog: a speed reference for a VFD or position reference for a control valve.
  • Network commands: start/stop and setpoints sent to drives or other controllers.

The PLC output normally controls a contactor, relay, VFD or valve interface; it does not power a large motor directly.

Simple example: automatic tank fillingSimple example: automatic tank filling

Inputs:

  • LOW_LEVEL: tank needs water
  • HIGH_LEVEL: tank is full
  • OVERLOAD: pump protection has tripped
  • SAFETY_OK: safety circuit is healthy

Output:

  • PUMP_CMD: command to the motor starter/VFD

Easy-to-read equivalent logic:

IF (NOT SAFETY_OK) OR OVERLOAD OR HIGH_LEVEL:
    PUMP_CMD := OFF
ELSE IF LOW_LEVEL:
    PUMP_CMD := ON
ELSE:
    keep the previous PUMP_CMD state

So the pump starts at the low-level point, stays on while the tank fills, and stops at the high-level point or immediately on a protection/safety fault. The PLC can also timestamp faults, show tank status on an HMI and alert an operator.

PLCs are used because the same behavior would require many relays and much more wiring. Logic can be changed without rebuilding the whole panel, I/O is modular, faults can be diagnosed online, and the cycle is deterministic enough for industrial sequencing.

One important boundary: a normal PLC program should not be the only emergency-stop layer. Safety functions should be hardwired through approved devices or implemented in a safety-rated PLC according to the required risk assessment.