Unit 5 PPT Ic
Unit 5 PPT Ic
They are designed with a small instruction set suitable for industrial control
applications. They are usually programmed with ladder logic, which is a
graphical method of laying out the connectivity and logic between system
inputs and outputs.
PLCs are being flexible and easy to program, they are robust and relatively
immune to external interference.
A PLC is the natural replacement for the relay circuits, timers, counters and
analog controllers used in the past (and still used today) to control the
operation of machines.
Department of Mechanical Engineering, VIIT , Pune-48
Department of Mechanical Engineering, VIIT , Pune-48
PLC Simulator for Marking Machine with Ejector
Step 1 :
If Upper Limit = ON And Switch Start =
ON Then Marking DOWN = ON.
Step 2 :
If Marking DOWN = ON And Lower Limit
= ON Then Marking UP = ON And
Marking DOWN = OFF.
Step 3 :
If Marking UP = ON And Upper Limit =
ON Then Marking UP = OFF And Ejector
Forward = ON And Marking DOWN =
OFF.
Step 4 :
If Ejector Forward = ON And Forward
Step 5 : Limit = ON Then Ejector Forward = OFF
If Ejector Reverse = ON And Reverse Limit = ON And Ejector Reverse = ON And Marking
Then Ejector Reverse = OFF And Ejector Forward DOWN = OFF And Marking UP = OFF.
= OFF And Marking DOWN = OFF And Marking
UP = OFF.
Department of Mechanical Engineering, VIIT , Pune-48
Department of Mechanical Engineering, VIIT , Pune-48
What is PLC ?
Object
sensor
Sensor signal
Bottle
Bottle
Open
0.50
1.00
1.50
0.00 Kg
Present
valve
Full Analog input 1.50 Kg
0.50
0.00
1.00
PLC signal
Scale
Object
sensor
Close
valve
0.00 Kg
1.50
PLC
Scale
Object
sensor
Sensor signal
Bottle
Bottle
Open
0.50
1.00
1.50
0.00 Kg
Present
valve
Full Analog input 1.50 Kg
0.50
0.00
1.00
PLC signal
Scale
Outputs
Pressure Sensor
• Motors
• Solenoids
• Indicator lamps
• Resistive loads
• Contactors
Motor Outputs
Department of Mechanical Engineering, VIIT , Pune-48
• Inputs
Components of PLC Device
• CPU
• Memory
• Outputs
Inputs
CPU Memory
Outputs
Execute Program
Latch Circuit
Department of Mechanical Engineering, VIIT , Pune-48
Timers and Counters
• Block type of timer
Timer Attributes
Time Base:
• Timers are typically programmed with several different time bases
• 1 second, 0.1 second, 0.01 second, 0.001 second
• Suppose time base is set to 0.1 and Delay increments is set to 50
• timer has 5 seconds delay (0.1 x 50)
• Problem 1
One open tank is installed in the plant of which liquid level is to be controlled. When level
reaches the Level Low, Outlet flow is blocked and inlet flow is allowed until high level is
achieved. And when Level High is detected, outlet flow is allowed and inlet flow is blocked.
•RUNG001 is to control the outlet valve through O:2/1. This is done when Level High is detected.
•Latching of Output O:2/1 is done because when High Level is detected, input to RUNG001 is temporary,
like Push Button. So in order to keep outlet valve open until the Level Low I:1/1 is detected, latching is
done. XIO of Level Low Switch is connected in series so that when Level Low is detected, it goes true closing
the outlet valve.
•Similarly in RUNG002, it works exactly same. The only difference in RUNG002 is that extra I:1/14 contact in
parallel with LLS.
•Suppose when the system is started and the tank is partially filled, neither LHS nor LLS is detected, in this
case, outlet and inlet valves remain closed while inlet valve should open to start filling the tank because it’s
partially filled.
•To eliminate this error, I:1/14 (Start) is connected in parallel to LLS I:1/1 contact. This checks if LHS (I:1/0) is
detected or not. If LHS is not detected, then it opens the inlet valve until LHS is detected.
• Problem 3
•Three on delay timers are used to turn ON and OFF traffic lights.
•The red light on for 30 seconds. The green light ON for 40 seconds and yellow light ON for 10
seconds.
• When we press start counter should start counting when material passes through sensor.
• After counting 10 items packed inside the cartoon pump should start and push the package
and reset the counter.
• Input Module
• Output Module
• CPU
• Memory
• Power Supply
• Programming Device
• Communication Channel
Department of Mechanical Engineering, VIIT, Pune-48
Figure shows the typical wiring to a PLC
input module.
The input module examines the state of
the physical switches and other input
devices and puts their state into a form
suitable for the processor.
It is able to accommodate a number of
inputs called channels.
If the switch is closed, the input will be
24 V DC, and if open, 0 V DC. The input
module converts this into the 1 or 0
state needed by the processor.
Input Module
Ref: Process Control Instrumentation - C D
Johnson
Output Module
Ref: Process Control Instrumentation - C D
Johnson
• Power supply modules that fit into one of the slots in a chassis
• Stand alone power supplies that connect to the PLC or I/O through a power cable
• The programming device is usually detachable from the PLC cabinet so that it can be shared between
different controllers.
• The information is transmitted in binary form, i.e. as a group of bits with a bit being a binary digit
• The term word is used for the group of bits constituting some information. Thus an 8-bit word might
• Each of the bits is communicated simultaneously along its own parallel wire.
Ladder program
with a delay-on
timer
Motor sequence
Shows how timers can be used to start three
outputs, e.g. three motors, in sequence
following a single start button being pressed.
When the start push button is pressed there is
an output from internal relay IRl.
This latches the start input. It also starts both
the timers, Tl and T2, and motor 1.
When the pre-set time for timer 1 has elapsed
then its contacts close and motor 2 starts.
When the pre-set time for timer 2 has elapsed
then its contacts close and motor 3 starts.
The three motors are all stopped by pressing
the stop push button.
Counters
Application Figure shows a basic counting circuit. When there is a
pulse input to input 1, the counter is reset. When there
is an input to input 2, the counter starts counting, if the
counter is set for, say, 10 pulses, then when 10 pulse
inputs have been received at input 2, the counter's
contacts will close and there will be an output from
output 1.
PLC ladder
logic program Counter
Timer Solenoid
Pressure
sensor Solenoid
Wiring diagram - + + -
Counter
Safety Manual
Timer sensor shut off Solenoid
Ladder Logic
Button
Actual Circuit
Relay Diagram
24 V DC
Motor
Input
Button Motor
Ladder Logic
Power Rails
Pressure Solenoid
sensor
Actual Circuit
- + PLC
+ - Diagram
Pressure
sensor Timer
Counter
Ladder Logic Timer Solenoid
Pressure
Sensor
- + Actual Circuit
Safety Diagram
Sensor Solenoid
-
+
- + PLC
Manual
shut off
- +
Sensor Timer
Counter
Consider a domestic central heating system where the central heating boiler is to
be thermostatically controlled and supply hot water to the radiator system in the
house and also to the hot water tank to provide hot water from the taps in the
house. Pump motors have to be switched on to direct the hot water from the
boiler to either, or both the radiator and hot water systems according to whether
the temperature sensors for the room temperature and the hot water tank
indicate that the radiators or tank need heating. The entire system is to be
controlled by a clock so that it only operates for certain hours of the day.
The boiler, output Y430, is switched on if X400 and X401 and either X402
or X403 are switched on.
This means if the clock is switched on, the boiler temperature sensor
gives an on input, and either the room temperature sensor or the water
temperature sensor give on inputs.
The motorised valve Ml, output Y431, is switched on if the boiler, Y430,
is on and if the room temperature sensor X402 gives an on input.
The motorised valve M2, output Y432, is switched on if the boiler, Y430,
is on and if the water temperature sensor gives an on input.
Industrial Mixer
• Heated
Fill with
State 1
liquid Start
button Pump
Level full switch 1 1
Level full
State 2 Heat floater Heater
2 2
Temperature Switch
PLC Mixing
Temperature
sensor Motor
State 3 Rotate 3 3
Timer
Ladder Logic Start button
Level full
floater Pump
State 1 Pump
State 2
Temperature Sensor
10 minute
Timer
State 3
10 minute Mixing motor
Timer
In a certain bank, each of three bank officers has a unique key to
the vault. The bank rules require that two out of the three officers
be present when the vault is opened. Draw the ladder diagram for
a relay logic circuit that will unlatch the door and turn on the light
when two of the three keys are inserted.
The top rung has three branches of switch contacts, one for each acceptable
possibility. At least one branch must have continuity so that the relay coil is
energized.
The bottom rung, activated when the relay contacts close, provides power to
the door-latch solenoid and the vault light.
11/12/2020 78
Ladder Logic
Three combinations of keys will open the
vault:
A and B,A and C, and B and C.
Each of the three keys—A, B, and C—fits in
its own key switch that has two sets of NO
contacts.
The top rung has three branches of switch
contacts, one for each acceptable
possibility. At least one branch must have
continuity so that the relay coil is
energized.
The bottom rung, activated when the relay
contacts close, provides power to the door-
latch solenoid and the vault light.
11/12/2020 79
An automatic drilling machine
An automatic drilling machine (Figure) might be required to start lowering the drill
when the workpiece is in position, start drilling when the drill reaches the workpiece
and the workpiece is in position, stop drilling when the drill has produced the
required depth of hole, retract the drill and then switch off and wait for the next
workpiece to be put in position before repeating the operation.
If switch A closes
Output to motor circuit
If switch B and C closed
Output to valve circuit
Sequential movement of pistons
11/12/2020 86