Part II · The Equipment · Family 4 · Control It · Stage 4 · Moving up

PLCs and Automation

A PLC is a small industrial computer that reads switches and sensors, runs a program over and over, and drives relays, solenoids, and lamps. Every automated machine on the ship — purifier, boiler, BWTS, incinerator, power management (PMS), AMS, remote valve system — has one in its cabinet, and when the machine "won't go," the PLC knows why.

Lessons and simulators

Lessons teach one thing step by step. Simulators are free play: best after the lesson.

WorksheetThe Cabinet MapWorksheet. Mark M/V Hawsepiper’s alarm system cabinets and the makers’ controllers on a plan, with what each reads, what feeds it and its network; sort the inhibits and forces into explained and ask-the-engineer-in-charge; then the twenty alarms from the purifier room. Then fill in and print your own.LessonSolenoids, Limit Switches and ProxesProve a purifier’s solenoid valve with its LED, volts and ohms; change the coil; look at a hatch cover limit switch’s arm and cam before its contacts and set a new one; catch a PNP sensor on a card wired for NPN and set the gap; seven calls.LessonHow Automation BreaksIs the reading wrong, or the plant? The six checks walked on DG2’s LO pressure over five days, an alarm that won’t clear set beside its limit, three nuisance trends, the first stop for every other symptom, and a dark cabinet traced back up its feed.LessonThe Ship’s NetworksTake a network switch down and see why there are two; measure and fix the resistors on an RS-485 Modbus chain; three silent devices (address, baud, polarity); a switch’s lights for power, cable or a duplicate IP; fiber tested with light; six calls.LessonPackaged ControllersThe boiler, purifier, compressor and AC cabinets are the same inside: sort what is electrical, mechanical and the maker’s; read a purifier’s alarm history and manual on three days; prove the common alarm reaches the ship after a cabinet change; five calls.LessonThe Alarm System as a MapClimb the alarm system from a sensor to the cabin panel; put an unmanned night in order; read an alarm point list; find why an alarm never came (a block signal stuck on); inhibit, un-inhibit and the point someone forgot; where alarm ends and control begins; five calls.LessonBoard-Level Repair: When There Is No Spare BoardFOP2’s power and output board, no spare and the exchange three weeks off: whose board it is, look then measure, the right parts and polarity, the iron and the job in order, and when to stop.LessonThe PLC and What Its Lights MeanNo. 1 hydrophore pump on a PLC: find the power supply, CPU, cards and port; read the LEDs through a good cycle; four mornings split by the lights; an input proved with the meter; five calls.LessonSwap a Card, Force a Point, Back Up and RestoreNo. 1 hydrophore pump’s PLC: back up before you touch, swap a dead output card with its block still wired, set a new card’s address, force a failed float and clear it, restore after a flat battery.LessonCalibrate or Replace a TransmitterDG2’s LO pressure transmitter has drifted: isolate, vent, take the as-found, chase zero and span until both hold, check the middle. Then pick a replacement that matches all five things.Simulator · free playFault BenchStarters with a fault you cannot see: operate them, read volts, ohms and amps on any terminal, find the fault, fix it and prove it. Twelve circuits (across-the-line pump, hold bilge pump on floats, wye-delta, a standby pump that starts on low pressure, a starting air compressor with its unloader and trips, and the sewage plant three ways: on floats with its blower, and two timer-run plants; the engine room crane hoist, reversing, with its limits and brake; a generator breaker's closing and tripping circuits in TEST; and an alarm system cabinet with two 4–20 mA loops and two switch inputs; and a hydrophore pump run by a PLC, where the program is your meter) and 250 faults at random.Simulator · free playLadder LogicRead a live ladder diagram for the No. 2 cargo hold bilge pump with Hand-Off-Auto, a seal-in, an overload, a run timer and a silenceable alarm, then fix five broken rungs.Simulator · free playPLC ProgrammerLearn to write ladder logic from zero. Follow along: twenty-two short guided exercises that tell you exactly what to press, from what a PLC is to contacts, coils, branches, the seal-in, NC wiring, the scan, memory bits, timers, latches, counters, the one-shot, alarm logic, numbers and math, 4–20 mA scaling, an analog alarm with a deadband, a step sequence, and the watch and force tables; skip any you know. Then build it yourself: eleven jobs on the ship's machinery, from a starter and a hold bilge pump to wye-delta, run hours, a hydrophore on a pressure transmitter, tank level alarms with a sensor fault and MAC1's auto start sequence, each checked by tests.Simulator · free playPLC RackSinking and sourcing inputs with PNP and NPN sensors, reading a PLC rack's LEDs to split a fault between field and PLC, and the safe order for swapping a card or forcing a point.

What kills it

Normal numbers

Maker’s values override these.

PointTypical
Control supply24 V DC nominal; most cards accept about 20–29 V
24 V digital inputON above about 15 V · OFF below about 5 V · between is undefined
Analog input4–20 mA (see Sensors and Alarm Systems); 0–10 V on some
Analog output4–20 mA to positioners, I/Ps, and VFD speed references
Scan timea few to tens of milliseconds — faster than anything mechanical
CPU battery3–3.6 V lithium; 3–5 years; the low warning gives days to weeks
CPU LEDs, healthyRUN steady · ERR/FAULT off · BATT off · FORCE off
Cabinetdoor shut, fan running, filter clean, no condensation, supply LED steady

Reading the gauges

Each one is a set of readings. Decide what they mean and what you’d check first, then look.

Symptoms

SymptomCheck firstLikely causesAction
Sequence stops at one step; HMI shows it waitingThe input that step needs; its LEDSwitch not made; sensor replaced and never set up; wire offMake the input real; set up the sensor
Output LED lit, device deadVolts at the card terminal, then at the coilBlown output fuse; broken wire; interposing relay failed; coil openFuse, wire, relay, coil — in that order
Output LED off, HMI says it should be onPermissives in the rung; forcesA permissive missing; a force holding it offFind the contact that isn't made
Input LED lit, field switch openJunction box; cableWater in the box; cable shorted to another; wrong terminal after workDry and re-terminate
Input LED flickeringVoltage at the input with the contact madeCorroded contact dropping volts into the undefined band; loose terminal; supply saggingClean the contact; tighten; measure the supply
Several unrelated alarms from one controllerWhat they share; 24 V supply under loadSupply dying; AI card or CPU failing; corroded backplane connectorSupply, then card, then CPU
"Communication error", machine runsCable and connectors between HMI and PLCLoose plug; broken shield; temperature-dependent boardReseat; log the temperature pattern; board if it persists
CPU in STOP or FAULT after a power dipFault code on the CPU or HMISupply fell below the CPU's limit; battery dead and program lost; card faultRestore supply; reload backup; swap card
Machine behaves differently after a power cycleParameters against the recordRetained values lost — defaults loaded; clock resetReload parameters from the record
Automatic sequence runs but skips a stepDrawings against the panelWiring modified over years; a jumper or force left inCompare; remove; redraw
A component downstream keeps burning outWhat the sequence should do with itThe step that de-energizes it never runs — an input it needs is missingFix the sequence input, not the component

Draft: this page is drawn from the book manuscript and is still being checked.