PLC

What is inside a PLC, how it scans, how ladder logic reads like a relay diagram, the start-stop latch, and why ships use PLCs.

Control and automation, page 3 of 62 min readUpdated 4 November 2026All 6 pages

A PLC is a rugged computer built to replace relays. A programmable logic controller reads its inputs, runs its program, and sets its outputs, over and over, many times a second. The logic that once took a cabinet full of relays and wiring now lives in its program.

An interactive PLC running a motor loads here. It needs JavaScript; the sections below explain everything it shows.

Hardware
PartWhat it does
Power supplyUsually feeds the PLC from 24 V DC.
CPUHolds and runs the program.
Input modulesRead switches, push buttons, sensors and 4 to 20 mA signals.
Output modulesDrive contactors, solenoid valves, lamps and analogue outputs.
CommunicationLinks to screens, other PLCs and the ship's alarm system.
The scan cycle
  1. Read all the inputs and store their states.
  2. Run the program from top to bottom, using those stored states.
  3. Write the results to the outputs.
  4. Do it again, typically every few to tens of milliseconds.
Ladder logic

PLC programs are often written as ladder diagrams, drawn like the relay circuits they replaced: two vertical rails with rungs between them. Each rung has contacts on the left, which stand for inputs or conditions, and a coil on the right, which stands for an output. Contacts in series mean AND; contacts in parallel mean OR. Because it looks like a wiring diagram, an electrician can read it.

A typical rung is the motor start-stop latch: a start button in parallel with the motor's own contact, in series with the stop button. Press start and the motor runs and holds itself on; press stop and the rung breaks.

Advantages of PLCs
  • Changes are made in the program, not by rewiring.
  • Fault finding is easier: the state of every input and output shows on the PLC's lamps and in its software.
  • Timers, counters and sequences that would need many relays are a few lines of program.
On board: purifier and boiler sequences, the power management system, ballast and cargo controls, compressor and pump changeovers. Keep a backup of every PLC's program before you change anything.
Check yourself
1. What are the three steps of a PLC's scan?
Read inputs, run the program, write outputs.
2. In ladder logic, what do two contacts in series mean?
AND: both must be true.
3. What makes a start-stop rung hold itself on?
The motor's own contact, in parallel with the start button.

Going for your ETO CoC oral?

The full PLC notes (T07), the quiz bank and the questions MMD surveyors have actually asked, each with a model answer, are in the Elec-Buddy app.

Start your free trial

Sources

Where the figures on this page come from, by book and printed page or by regulation.

  • Fernandez, E.A. Marine Electrical Technology: ship's auxiliaries controlled by PLCs in the motor control centres, linked by a data bus to the machinery control room (p.18); power management systems, once relay-based, now usually a PLC-based programmable electronic system (p.22).
  • Hall, D.T. Practical Marine Electrical Knowledge, 3rd ed. (2014), p.21: preference tripping and generator protection built into a PLC-based power management system.
  • IEC 61131-3, programming languages for programmable controllers: the ladder diagram language, with contacts and coils on rungs between two power rails.
  • Drawn from general principle: the read, execute, write scan cycle and its typical time of a few to tens of milliseconds, which varies with the controller and the size of its program.
  • Elec-Buddy notes: T07 Control Systems and PLC (PLC hardware, the scan cycle, ladder logic, timers and counters, the start-stop latch, program backups, protecting a PLC from electrical noise).
  • The lab runs a four-rung ladder program: the start-stop latch with an overload contact, a run lamp, and an on-delay timer starting a second pump after 5 s. Its scan can be slowed to one rung at a time. An automated test checks the program's behaviour.