PLC
PLC
PC and PLC
PC perform a complicated series of operations
very rapidly
PLC basic purpose is to make yes/no logic
decision.
PC load program upon command, execute once
and load another execute and so on. ( generalpurpose devise)
PLC execute tiny program continuously hundreds
of millions of times before being interrupted to
introduce new program.
Why we need to know the difference between PC
and PLC
PLC cycle
New execution may be triggered by
the line cycle of the alternating
current power supplied to the PLC.
In this model new cycle begins each
time the voltage peaks.
What is the differences between
Logic execute cycle and overall cycle.
Boolean Logic
Boolean Algebra
Logic network
Ladder diagram
PLC
Programming Method
Ladder diagrams
Early PLCs, designed for the
car industry, replaced relay
control schemes. The symbols
used in relay drawings, ] [ for
a normally open (NO) contact,
] / [ for a normally closed
(NC) contact, and ( ) for a
plant output, were the basis of
the language. Figure 1.14
shows the keyboard for a
programmer for this type of
PLC; the relationship to relay
symbolism is obvious
Logic symbols
Logic gates based on TTL
(transistortransistor logic) and
CMOS (complementary metal
oxide
semiconductor)
integrated circuits are widely
used
in
digital
systems
(including the boards used
inside PLCs). The circuits used
on
these
boards
are
represented by logic symbols,
and these symbols can also be
used
to
describe
the
operations of a PLC program.
Logic symbols are used by
Siemens and ABB; initially we
will use Siemens notation.
Statement list
A statement list is a set of
instructions which superficially
resemble assembly language
instructions for a computer.
Statement lists, available on
the Siemens and Mitsubishi
range, are the most flexible
form of programming for the
experienced user but are by no
means as easy to follow as
ladder diagrams or logic
symbols.
Analog interfacing
An analog interface card converts a
continuously varying analog signal to a
digital form that can be used inside a
PLC program
analog signal measuring a flow with a
span (range) from 0 to 1800 l/min
What is the system ADC resolution if
interfacing is 1 byte?
What about 12 bit ADC system?
Multiplexed inputs
a PLC generally works with a
16-bit word. If our analog input
card occupies one slot in a
rack, and reads just one analog
input, it will be wasteful of I/O
space (and very expensive).
For comparison, a normal
digital input card reads 16
signals, and costs about a
quarter as much as an analog
input card. The cost, and I/O
usage, can be reduced by
using multiplexing, shown as a
block diagram
Timers
.There are many types of
timer, some of which are
shown in. By far the
commonest is the on delay. All
the other timer blocks can be
simulated with this block and a
bit of thought. A 0 to 1
transition is delayed for a
preset time T, but a 1 to 0
transition is not delayed at all.
An input signal shorter than T
is ignored.
Counters
Counting is a fundamental part
of many PLC programs. The
PLC may be required to count
the number of items in a
batch, or record the number of
times some event occurs. With
large motors, for example, the
number of starts has to be
logged.
Example
Suppose we want to use a PLC to handle
the control circuitry to require an assembly
line to be started in low speed before
permitting 0peration in high speed. The
following input output are define.
11 = momentary spring push button to signal
start the line at low speed
00 = momentary spring push button to signal
start the line at high speed
01 = momentary spring push button to stop line
20 = Low speed
21 = High speed
answer
00
15
20
21
=
=
=
=
system power on
production count sensor
carton packaging signal (3 sec)
gross packaging signal (5 sec)
Programming Techniques
RS Flip Flop
One Shot
D Flip Flop
T Flip Flop
J-K Flip Flop
RS Flip Flop
It has two inputs, an R
(reset) and an S (set).
if IN2 energizes, coil CR1 will
de-energize and if IN2 deenergizes and IN1 energizes,
coil CR1 will energize.
Once CR1 energizes, contact
CR1 will close, holding coil
CR1 in an energized state
even after IN1 de-energizes
until IN2 energizes to reset
the coil.
If an inverted Q signal is
required from this ladder,
one only needs to make the
contact a normally closed
CR1
One Shot
D Flip Flop
IN1 is defined, in this case,
as the D input and IN2 is
defined as the trigger.
The column labeled Qn
contains the state of the
flip flop Q output prior to
the trigger
The column labeled Qn+1
contains the state of the Q
output of the flip flop after
the application of the
trigger.
An X indicates a don't care
situation. A 1 in the CL
column indicates that the
clock makes a 0 to 1 to 0
transition
D Flip Flop
T Flip Flop
The method is to use
a toggling coil (CR1)
and a one shot. The
one shot is composed
of the first and second
rungs
IN1 contact is to
provide for the T input
to the flip flop network
If T is a 1, the flip flop
will toggle and if T is a
0, the flip flop will not
toggle.
Wiring Techniques
Read the note
Its straight
forward
understanding.
Input Wiring
Output Wiring
Relay Outputs
FORM A relay contact is
a single pole normally
open contact. This is
analogous to a single
contact normally open
switch.
FORM B relay contact is
a single pole normally
closed contact which is
similar to a single
normally closed switch.
FORM C relay contact is
a single pole double
throw contact.
Sourcing output
Triacs output
TTL output
Motor Controls
AC Motor Overload
Protection
Specifying a Motor
Starter
number of phases
to be controlled
motor size
coil voltage
overload heater
size
DC Motor Controller
improve
previous