1.12Relay logic, ladder logic, sinking and sourcing

The sensor that was fine

Slide the drawing sideways, or open it full size.
Logic in contacts, and sinking vs sourcing
Figure 1.12. Logic in contacts, and sinking vs sourcingOpen full size

Where you'll meet it. You replace a proximity sensor on a hatch cover. The new sensor's own LED comes on when the target passes, so the sensor works. The PLC input LED never lights, so the PLC says the hatch never closes. The old sensor was NPN, sinking current out of the input; the new one is PNP, sourcing current into it, and the card is wired for the first kind. The sensor is fine, the card is fine, and the two cannot talk. Ten minutes with the card's manual and the sensor's data sheet, and you order the right one or move the common.

The idea. AND is contacts in series; OR is contacts in parallel; NOT is a normally closed contact. That is all logic ever is, and a relay panel, a ladder rung and a PLC program are the same three ideas in different clothes. The one thing the PLC adds that bites is sinking versus sourcing: whether an input expects the sensor to push current into it or pull current out of it. The card's manual says which; the sensor's wiring diagram says which; they must agree.

Used in: 4.4, 5.8, 5.10.

Work it

Built for this entry. Lessons first, then the simulator for free play.

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.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.

Comes up in

Other entries that send you here.

All of Part 1