EET 319 Programmable Logic Controllers
EET 319 Programmable Logic Controllers
Course description
Introduction to PLCs / Key components
Boolean algebra
Programming
Ladder logic
Discussion of labs / Lab report format
Motors
Seal-in logic / Latches
Interlocks
Program Documentation
Wednesday -- start Labs 1+2 (no lab report due)
Course Description
Syllabus
CPU
Memory
Input Output
Module relays
Internal utility
relays (bits)
logical Counters
Timers
Output
circuits
Input
circuits
Key components: switches
Source: http://en.wikipedia.org/wiki/Switch
Key components: switches
Key components: relays
Symbols:
Examine If
Closed - XIC
Examine If
Open - XIO
Key components: counters and timers
NOT Q=A
(INVERT)
AND Q=A B
= AB
OR Q=A+B
Q=A B
NAND = AB
NOR Q=A+B
Boolean algebra
truth table
XOR Q = A + B = AB + AB
XNOR
De Morgan’s Laws (or De Morgan’s theorem)
A B = (A + B)
A + B = (A B)
A B C
0V +12 V
When will the output be turned on?
B
0V +12 V
A C
0V +12 V
The Relationship between Relays
and Boolean Logic
How would you do a NOR gate?
One way is to use the output from one relay circuit as the input for
another
A
Output 1
B
Output 2
Output 1
0V +12 V
Here’s a better way using De Morgan’s
theorem
A + B = (A B), so
A B A+B
0V +12 V
Ladder Logic
The way in which we just represented these relay circuits is known as
“Ladder Logic” (it actually predates the development of PLCs)
Ladder logic started out as a hand-drawn graphical representation of the
way in which the automation system was connected together
With the advent of microprocessor-based PLCs, software applications
were developed to support computer-aided design of ladder logic
programs
Ladder Logic
Over the years there have been attempts to support programming in
other languages, and different languages are supported by different
vendors
Here are a few (list not updated recently)
L1 L2
A B CR1 Coil
Output Energize (OTE)
A B
L1
CR1
How the CPU executes
the program
lamp
Rule Number 1: you can’t have a given
output on more than one ladder rung!
(If so, it ignores all but the last one.
It won't tell you – it will just do it.)
Some terminology
NO N 1
NC N 1
NC N 0
NO Y 1
NO Y 0
NC Y 0
NC Y 1
Addressing
These are N/O but usually pressed, so they act like N/C.
O:2/1
O:2/1
O:2/1
O:2/1
O:2/1
O:2/1
N.B. For all lab exercises, save all your files on a flash
drive or mail them to yourself etc.