Beruflich Dokumente
Kultur Dokumente
INTRODUCTION TO PLCs
(PROGRAMMABLE LOGIC CONTROLLERS)
• A special computer designed to control hundreds of digital and
analogue input and output signals with a very fast response time;
• Used for real time control in factories, particularly for robot work
cells or automated machinery;
• Uses stored instructions in its programmable memory to
implement logic, sequencing, timing, counting and arithmetic
control functions for controlling machines and processes.
• Connected to computer systems easily using one of many widely
used communications protocols (e.g. RS-232 serial ports), which
they normally have to enable communication with many systems
and devices
Power
Supply
Inputs
Outputs
Memory Unit
1
23/02/2011
O O O
I I I U U U
Sketch of Power C N N N T T T
structure of a Supply P
U
P
U
P
U
P
U
P
U
P
U
P
U
modular PLC T T T T T T
SLOT 0 1 2 3 4 5 6
NUMBER
I:1/15
Common
Thursday, 24th February 2011 IENG3006 Automation Lecture 5 4
2
23/02/2011
INPUT OUTPUT
TERMINALS TERMINALS
CPU
I:1/15 O:2/15
• The basic ladder diagram looks similar to a stepladder. Two uprights hold the rungs that
make up the PLC ladder. The left and right uprights (called power rails) represent power. If
we connect the left and right uprights, power can flow through the rung from the left
upright to the right.
• The PLC would then run the ladder, continually monitoring inputs and controlling outputs
by a process called scanning.
3
23/02/2011
4
23/02/2011
I1:1/3 O0:2/3
Slot Bit Slot Bit
Delimiter Delimiter Delimiter Delimiter
Examine if Closed
Sensor Status Signal State
Activated 1
Not Activated 0
Output Energize
Examine if Opened
Instruction
Sensor Status Signal State
Activated 0
Not Activated 1
Thursday, 24th February 2011 IENG3006 Automation Lecture 5 9
F = (A B C) + D
5
23/02/2011
E.g. 1 - continued:
For NOT alarm condition (i.e. alarm NOT on or in other words for machine
operating condition i.e. machines functioning) the sensors one to four must
be active functioning signals (i.e. I0 AND I1 AND I2 AND I3) AND there must
be no intrusion signals (i.e. I4 AND I5 AND I6 AND I7)
Thus for machines to halt (i.e. for alarm to sound)
A = A = I0I1I2I3I4I5I6I7
By De Morgan’s theorem
A = I0+ I1+ I2+ I3+ I4+ I5+ I6+ I7
6
23/02/2011
7
23/02/2011
F = AB + CD + E
HAZARDS
Static and Dynamic Hazards
Should a discrete control system/circuit fail, the equipment it services will malfunction with
varying consequences: from loss of time; loss of materials; loss of equipment; and may be
even loss of life. Precisely because of the consequences of circuit failure, the term hazard
has been used to denote those circumstances that give rise to the system/circuit failure.
Static Hazard, is a situation in which the output of a given combinational circuit may
momentarily change output “a glitch” where the function governing the circuit
dictates its output to remain constant. It can happen that in the process of function
simplification, consensus terms are left out. Depending on the application, such
absence may give rise to glitches in the state transitions of the system.
In Dynamic Hazards, an output may change several times for a single change in input.
This is caused by the occurrence of three or more paths from an input to the output,
each path having a different delay. Such hazards affect asynchronous circuits and as
in the case of combinational circuits, can be eliminated by simply rearranging the
form of the equation or by adding consensus terms.
8
23/02/2011
Latching (Continued):
• Latching uses past events to regulate present
behaviour by establishing the conditions
under which a system: enters into; is held
within; and leaves a particular ‘state’.
9
23/02/2011
EXERCISE
Using the Ladder Logic Simulator LOGIXPRO,
programme the Garage Door so that :
• Door movement will halt immediately when the Stop Switch is initially pressed, and will remain halted if
the switch is released.
• Pressing the Open Switch will cause the door to Open if not already fully open. The opening operation
will continue to completion even if the switch is released.
• Pressing the Close Switch will cause the door to Close if not already fully shut. The closing operation will
continue to completion even if the Switch is released.
• If the Door is already fully opened, Pressing the Open Switch will Not energize the motor.
• If the Door is already fully closed, Pressing the Close Switch will Not energize the motor.
• Under no circumstance will both motor windings be energized at the same time.
• The Ajar Lamp will be illuminated if the door is NOT in either the fully closed or fully opened position.
• The Open Lamp will be illuminated if the door is in the Fully Open position.
• The Shut Lamp will be illuminated if the door is in the Fully Closed position.
10