MileThree I&E
Field guide vMobile

PLC Handbook

Practical Guide to PLCs

Pocket Field Reference

A pocket field reference for architecture, scan cycles, hardware sizing, ladder logic, PID loops, and industrial networking. Maintained by Johnson Automation Group, Three Mile Creek Services, and Creekbound Services.

6 Chapters
Complete Guide
~1 ms
Typ. Scan Time
1968
Birth of PLC
01

What is a PLC?

pp. 3–4

A Programmable Logic Controller (PLC) is a miniature industrial computer designed to automate electromechanical processes (assembly lines, packaging, food processing, amusement rides) in harsh environments with extended temperature ranges, electrical noise immunity, and vibration resistance.

1. The CPU

Microprocessor + memory system. Operates in Programming Mode (accepts PC logic changes) or Run Mode (executes control loop in ~1/1000th sec).

2. I/O Interface

Connects field sensors & actuators to the CPU via Discrete (ON/OFF), Analog (continuous range), or Specialty modules.

Interactive Scan Cycle Loop

Tap any step or press Step/Auto to inspect the repeating loop

1. Input Scan

Detects the physical ON/OFF or analog state of all field input devices (pushbuttons, proximity sensors, transmitters) connected to the PLC and snapshots them into the input image table.

02

History of the PLC

pp. 5–9
Pre-1968 · Relay Cabinets

The Hardwired "Rat's Nest"

Factories relied on 50 to 100+ electromechanical power and control relays, pneumatic plunger timers, and rotary drum sequencers inside 6×4 ft enclosures. Worn contacts, coil failures, and point-to-point engineering changes created unreliable wiring "rat's nests."

New Year's Day 1968 · Birth of the PLC

GM Hydra-Matic & Dick Morley

General Motors issued a proposal for a "standard machine controller." Dick Morley (father of the PLC) and Bedford Associates responded with four core requirements:

  • Solid-state system flexible like a computer, priced competitively with relays.
  • Programmed and maintained in familiar Relay Ladder Logic.
  • Ruggedized against factory dirt, moisture, EMI, and vibration.
  • Modular form for easy component replacement and expandability.
1969–1970s · Modicon 084 & 184

From 125 Words to Commercial Breakthrough

An early prototype with 125 words of memory was too slow to match relay response times ($1/60\text{ s}$), prompting expansion to 1K and 4K words. Bedford Associates spun off Modicon (MOdular DIgital CONtroller) with prototype #84 (Modicon 084), followed by Michael Greenberg's Modicon 184, which made PLCs take off worldwide.

03

How to Choose a Controller

pp. 10–13

CPU Memory & Architecture Estimator

Based on Chapter 3 Step 6 Rule of Thumb (p. 13)

Interactive
Discrete Devices (ON/OFF points) 24 pts
Rule: $5\text{ words}$ of program memory per discrete device
Analog Devices (4–20mA / 0–10V / Temp) 4 ch
Rule: $25\text{ words}$ of program memory per analog device
Est. Program Memory
220 Words
+50% buffer: 330 Words
Suggested Hardware
Stackable / Micro Brick
Expandable local I/O bus
View All 9 Controller Selection Steps (pp. 10–13) ▼
01New vs. Existing System: Match legacy components, voltages, and software cables.
02Environment: Check ambient temp (typ. $0\text{–}60^\circ\text{C}$), dust, vibration, and UL/CE/HazLoc codes.
03Discrete Devices: Count AC, DC (Sinking/Sourcing), and Relay ON/OFF points.
04Analog Devices: Count Voltage ($0\text{–}10\text{V}$), Current ($4\text{–}20\text{mA}$), RTD, and Thermocouple signals.
05Specialty Features: High-speed counters (HSC), pulse outputs, real-time clock.
06CPU & Memory: Calculate data/program memory and required scan time speed.
07I/O Location: Local cabinet I/O only vs. distributed Remote I/O over Ethernet/RS-485.
08Communications: HMI ports, peer-to-peer PLC networking, Modbus, or EtherNet/IP.
09Programming: Built-in PID loops, drum sequencers, floating-point math, subroutines, interrupts.
04

PLC Hardware & I/O

pp. 14–26

The handbook compares PLC hardware to the human body: the Brain (CPU), the Spine (Base / Backplane data bus), and the Senses (I/O Modules).

Fixed / Brick

CPU & fixed I/O in one housing. Lowest cost, compact footprint.

Stackable

Interlocking I/O blocks. Removing a middle module breaks downstream bus.

Modular Base

Slotted rack backplane. Slide any card out without disturbing others.

DC Discrete I/O: Sinking vs. Sourcing

Tap to compare current path between Field Device & PLC

PNP Sourcing Sensor (+24V) ─── Current ($I$) ───► PLC Sinking Input ($0\text{V}$ Com)

Sinking PLC Input: The PLC terminal provides the $0\text{ VDC}$ reference path (ground) to complete the circuit. Pair a Sinking PLC Input card with a Sourcing (PNP) field sensor.

05

PLC Software & Ladder Logic

pp. 27–47
─┤ ├─
Normally Open
True when input is ON ($1$)
─┤/├─
Normally Closed
True when input is OFF ($0$)
─( )─
Output Coil
Energizes when rung is True

5-3 Live Rung Simulator: Motor Seal-In

Tap the field switches below to test classic seal-in latch logic

MOTOR OFF
X1 (NO)
─┤PB_START├─
Y1 (Seal-In)
─┤MOTOR_Y1├─
X2 (NC)
─┤/PB_STOP├─
X3 (NC)
─┤/OVLD├─
Y1
(MOTOR)

How it works: Tapping START (X1) energizes coil Y1, which immediately closes the parallel seal-in contact MOTOR_Y1 so the motor keeps running after START is released.

06

Practical PLC Topics

pp. 48–66

6-1 Methods Behind PID Loop Control

p. 49

Closed-loop control continuously calculates the error $e(t) = \text{SP} - \text{PV}$ between a desired Setpoint ($\text{SP}$) and measured Process Variable ($\text{PV}$) to drive the Control Output ($\text{CV}$):

P · Proportional

Reacts to present error magnitude ($K_p \cdot e$).

I · Integral

Eliminates past steady-state offset ($\int e\,dt$).

D · Derivative

Dampens overshoot via rate of change ($de/dt$).

6-2 & 6-3 Industrial Comms & EtherNet/IP

pp. 54–60

Serial standards (RS-232 point-to-point up to ~50 ft; RS-485 multi-drop up to 4,000 ft) and protocols like Modbus RTU/TCP and EtherNet/IP connect PLCs to HMIs, drives, and SCADA.

Explicit Messaging
TCP/IP · Request/Response

Used for asynchronous, on-demand data, configuration, and diagnostics.

Implicit (I/O) Messaging
UDP/IP · Cyclic Real-Time

High-speed, scheduled multicast/unicast polling for time-critical I/O control.

6-4 Motion Control Explained

p. 61
Stepper Systems

Typically open-loop using high-speed Pulse & Direction (PTO) commands. Cost-effective and high torque at low speeds.

Servo Systems

Closed-loop with encoder feedback for dynamic loads, high speed, and tight positioning accuracy.

Collection of PLC Application Stories (p. 66) ▼

The handbook concludes with real-world automation stories illustrating how modern PLCs replace legacy relay panels across industries:

  • Packaging & Material Handling: High-speed photoeye registration, conveyor indexing, and reject diverters.
  • Water & Wastewater Treatment: Submersible level transmitters ($4\text{–}20\text{ mA}$) driving VFD pump staging and remote telemetry.
  • Food, Craft Brewing & Batching: Automated PID mash/kettle temperature loops with C-more HMI recipe control.

Field guide by Johnson Automation Group, Three Mile Creek Services, and Creekbound Services.

Designed for mobile field technicians, students & controls engineers.