2
Logical AND Function
• Truth Table:
A B C =A•B
0 0 0
0 1 0
1 0 0
1 1 1
B
A B
A
A
B
B
Logic Gate Ladder Logic
3/12/2019 4
Logical NOT Function
Truth Table:
A B =A
0 1
1 0
Pneumatic
A
A
6
Logic Diagram Examples
• Logic Gates (Network)
x
Timer z
y 1s
7
PLC History 101
• Pre-1968 electrical controls:
– Hardwired Panels
• Ladder Logic (electrical continuity)
• Relays
• Cams
• Drum sequencers
• Disadvantages:
– Shut down line to change, debug, optimize control
– Errors were difficult to locate, correct
– Mechanical devices are prone to wear out
– Electrical safety was difficult
– “Real estate” for panel was expensive
8
PLC History 102
• 1968 General Motors:
– Use re-programmable computer to control system
– Programmable using Ladder Logic
• Concept is LOGICAL continuity rather than electrical continuity
• Electricians would not have to be trained in a programming language
• Could be programmed off-line
– Environmentally hardened
• Operate without error in a high EMF environment
• Sealed from dirt, dust
– Electro-Optic Isolation
• Separates computer from inputs & outputs
• Modularization concept
9
PLC History 103
• Today:
– Smaller
– Cheaper
– Expandable
– More Capable
• Digital I/O modules
• Analog I/O modules Position control modules
• High speed counters open loop control
• Communications closed loop control
– host - link Machine vision modules
– peer to peer
– ASCII Bar code modules
• Speech modules PID control modules
Fuzzy logic control modules
RF - radio frequency modules
10
PLC System Components
• Requirements:
– Power Supply
– CPU
– Input block
– Output block
– Memory
– Programming Unit
• Options:
– Expansion Units
– Modules
11
PLC System Diagrammed
Power Supply
CPU
Input Output
Block Block
Memory
RAM
ROM Dumb terminal
EPROM Programming Dedicated terminal
EEPROM Unit Hand-held programmer
Micro computer
12
Electro-Optical Isolation
• Purpose:
– Avoid direct electrical path between I/O blocks
and control circuitry Input Block
• Inputs: Sensor
+
P
– L
C
Output Block
• Outputs: P
L ~
C Load
13
Questions & Issues
14