PLC
PLC
LAB MANUAL
Sixth Semester
Programmable Logic Control LAB – MC1632 2020
Contents
S.No. Contents Page No.
I Evaluation Scheme 4
II Do’s and Don’ts 4
III Laboratory Instructions 5
IV Introduction to Laboratory components 6
V Exercise 01: Study of Logic Gates and implementation using PLC ladder 13
diagram.
Exercise 02 Implementation of Latching circuit and study of its application. 16
Exercise 03: Implementation of Switching of Light circuit using PLC logic. 18
Exercise 04: Implementation of Door Bell. 20
Exercise 05: Study and implementation of Sequential Control of 23
Motors/Cylinders.
Exercise 06: To perform Stepper Motor Control using PLC ladder 26
programming.
Exercise 07: Implementation of Process control using PLC ladder diagram. 29
Exercise 08: To perform Traffic Light Control using PLC ladder diagram. 32
Exercise 09: To study and implement Bottle filling Plant using PLC ladder 36
diagram.
Exercise 10: To study and implementation of Conveyor Control System. 40
Exercise 11: Study of Industrial Process and implementation using PLC 43
ladder diagram.
Exercise 12: Drilling Tool 45
Exercise 13: Implementation of Analog PLC operations. 48
Exercise 14: Seven segment display using PLC ladder program. 50
Exercise 15: Implementation of Lift Control logic using PLC ladder diagram. 53
Exercise 16: Implementation of Density based traffic light system. 56
I. Evaluation Scheme
Class: IV Semester B.Tech. Evaluation
Branch: Mechatronics Evaluation scheme followed as per lab session
Schedule per Week Viva-voce taken at each lab session (Internal)
Practical Hrs : 2 hr/week Main Examination Time = Three (3) Hours
Maximum Marks = 100
[Internal (60) & External (40)]
DO’S:
• Students should get the record of previous experiment checked before starting the new experiment.
• Read the manual carefully before starting the experiment.
• Before starting the experiment, get circuit diagram checked by the teacher.
• Before switching on the power supply, get the circuit connections checked.
• Get your program and connections checked by the teacher.
• Apparatus must be handled carefully.
• Maintain strict discipline.
• Keep your mobile phone switched off or in vibration mode.
• Students should get the experiment allotted for next turn, before leaving the lab.
DONT’S:
• Do not touch or attempt to touch the main power supply wire with bare hands.
• Do not overcrowd the tables.
• Do not tamper the equipment.
• Do not leave the lab without prior permission from the teacher.
As the name indicates, programmable logic controllers (PLC's) are nothing but a type of solid state devices
designed to perform logic functions previously accomplished by electromechanical relays mainly used in
industrial equipment. These industrial equipment may range from a small ON-OFF switch to a heavy
machine. Any component in an industry that needs a control can be controlled by using a PLC. The main
advantage of using a PLC is that long and tedious programming can be eliminated. These PLC's differ not
only on the basis of programming but also it has the advantage of being available in portable sizes and
series. The programming for the PLC is done by using a ladder logic diagram. The ladder logic diagram
consists of blocks which are in the form of ladders. We will be discussing about it in detail in the later
parts.
PLC PROGRAMMING
The two most common language structures are ladder diagram language and Boolean language.
Here we will be using only the ladder diagram language. The ladder diagram language is basically a
symbolic set of instruction used to create the controller program. These ladder instructions are arranged
to obtain the desired control logic that is to be entered into the memory of the PLC. The main symbols
that are used in a PLC programming are as shown below:
It should be noted in a PLC ladder programming that continuous path is required for logic continuity, and
to energies the output. A ladder diagram can be represented as shown below.
The main function of the logic ladder diagram is to control outputs based on input conditions. This control
is accomplished through the use of what is referred to as a ladder rung. For an output to be activated or
energized at least one left-to-right path of the contact must be closed. A complete closed path is referred
to as having logic continuity. When logic continuity exists in at least one path, the rung condition is said
to be true. The rung condition is false if no path has continuity.
MODE OF OPERATION
DESCRIPTION
Versa-Max Micro PLCs offer the perfect solution for smaller packaging machines, dispensing
machines, and relay replacement applications with up 8 Inputs and 6 Outputs. In spite of their small size,
these versatile controllers provide powerful programming features such as built-in high-speed counter
functionality, PID functions, support for floating-point function blocks and subroutines, ability to assign
passwords and privilege levels, and override capability.
It operates on +24VDC nominal Input power and accept Inputs from 8 No’s of Positive Logic
/Negative Logic Inputs. In IC200UDD104 model PLC having 6 No’s of Transistor Outputs. From Q1 t0
Q2 outputs at 1 Amps Max and then Q3 t0 Q6 outputs are at 0.75 Amps Max. It having 4 No’s of High
speed counter channels and 4 No’s of PWM outputs at 15Hz to 5 KHz.
a) Run/Stop Switch
The Run/Stop switch can be configured as a run/stop switch, a memory protect switch, and used
for clearing faults when a fatal fault exists.
b) Serial Ports
Port 1 is an RS-232 serial port with an RJ-45 connector. Port 2, located behind a removable door
on the front of the Micro PLC, is an RS-485 serial port with a DB-15 connector. Both ports can be used
for programming. Only one port can be used at a time for programming, but both ports can be used for
monitoring at the same time. Port 1 uses SNP slave protocol. Port 2 is software configurable for SNP slave
or RTU slave operation. 4-wire and 2-wire RTU are supported.
c) Status LEDs
LEDs for Power, OK, and Run mode, plus individual LEDs for each I/O point.
d) Features
DC INPUTS
The DC inputs accept 24VDC input voltages. The 24 volt DC input circuits can have positive or
negative logic characteristics. Current into an input point results in a logic 1 in the input status table
(%I). Input characteristics are compatible with a wide range of input devices, such as pushbuttons,
limit switches, and electronic proximity switches. Power to operate field devices and the input circuits
is supplied by an isolated +24 VDC supply.
DC Input Specifications
DC Outputs
DC Output Specifications
S7-200 CPU
The S7-200 CPU combines a microprocessor, an integrated power supply, input circuits, and output circuits in
a compact housing to create a powerful Micro PLC. After you have downloaded your program, the S7-200
contains the logic required to monitor and control the input and output devices in your application.
Computer Requirements
STEP 7--Micro/WIN runs on either a personal computer or a Siemens programming device, such as a PG 760.
Your computer or programming device should meet the following minimum requirements: - Operating system:
Windows 2000, Windows XP, Vista, or Windows 7 At least 350M bytes of free hard disk space Mouse
(recommended)
Communications Options
Siemens provides two programming options for connecting your computer to your S7-200: a direct connection
with a PPI Multi-Master Cable, or a Communications Processor (CP) card with an MPI cable. The PPI Multi-
Master programming cable is the most common and economical method of Connecting your computer to the
S7-200. This cable connects the communications port of the S7-200 to the serial communications of your
computer. The PPI Multi-Master programming cable can also be used to connect other communications
devices to the S7-200.
Exercise 01: Study of Logic Gates and implementation using PLC ladder diagram.
Objective: To understand the working of a programming logic controller and to implement the digital
logic in PLC
Exercise definition:
A latch is an electronic logic circuit that has two inputs and one output. One of the inputs is called
the SET input; the other is called the RESET input. Latch circuits can be either active-high or active-low.
The difference is determined by whether the operation of the latch circuit is triggered by HIGH or LOW
signals on the inputs.
Active-high circuit: Both inputs are normally tied to ground (LOW), and the latch is triggered by a
momentary HIGH signal on either of the inputs.
Active-low circuit: Both inputs are normally HIGH, and the latch is triggered by a momentary LOW
signal on either input.
Exercise tasks:
Definition: -
A light switch is a switch, most commonly used to operate electric lights, permanently connected
equipment, or electrical outlets. Portable lamps such as table lamps will have a light switch mounted on
the socket, base, or in-line with the cord. Manually operated on/off switches may be substituted by remote
control switches, or light dimmers that allow controlling the brightness of lamps as well as turning them
on or off. Light switches are also found in flashlights and automobiles and other vehicles.
Exercise tasks
With selector switch, a decision is made as which of the lamps (lamp1 or 2 lamp) is to be switched
ON. If selector switch is in OFF position (input =0) and active push button is actuated, then lamp 2 will
light. Similarly, if selector switch is in ON position (input signal = high) and active push button is actuated
then lamp 1 will light. Lamp will light even if the push button is released.
Definition:
When a visitor presses the doorbell button, the home’s doorbell rings as usual; however, additional
lamps and ceiling lights flash and/or loud beepers also sound wherever special PLC modules have been
installed. Any number of these modules can be installed in a home to flash a light and/or make a sound in
each room or even in a nearby home if a neighbor or caregiver is counted on to greet visitors. This system
can be helpful to people who are hearing impaired or deaf, as well as people who answer the door for
others but do not have a doorbell chime in their rooms. Hearing people who may need a flashing light or
louder chime close by in noisy spaces, such as in home workshops or when the stereo is on, will also find
the system useful.
Exercise tasks: A bell inside the flat is to ring if the door switch at the front door or gate switch at the
gate is pressed.
Sequence of task:
Press gate switch, Doorbell will ring for 2 sec after releasing the switch or press door switch, Doorbell
will ring for 2seconds after releasing the switch. Implement the task using both ON and OFF timers.
Exercise Definition:
The PLC task is to operate motor 1 followed by motor 2 followed by motor 3. The sequence is motor 1,
2, 3, and 4.
Sequence of tasks:
The sequence of tasks is as follows:
i. When input switch (push button) is pressed motor 1 will start.
ii. Motor 2 will start after 5 seconds of motor 1.
iii. Motor 3 will start after 5 seconds of motor 2.
iv. Motor 4 will start after 5 seconds of motor 3.
v. Motor 5 will run for 5 seconds and after 5 seconds all the motors will stop. To restart the process,
input switch is pressed again.
Exercise 06: To perform Stepper Motor Control using PLC ladder programming.
Objective: To understand the working of stepper motor in full step and half step mode.
Definition:
Stepper motors work on the principle of electromagnetism. There is a soft iron or magnetic rotor
shaft surrounded by the electromagnetic stators. The rotor and stator have poles which may be teethed or
not depending upon the type of stepper. When the stators are energized the rotor moves to align itself
along with the stator (in case of a permanent magnet type stepper) or moves to have a minimum gap with
the stator (in case of a variable reluctance stepper). This way the stators are energized in a sequence to
rotate the stepper motor.
Figure (a) shows a permanent magnet stepper motor with four stator windings. By pulsing the
stator coils in a desired sequence, it is possible to control the speed and direction of the motor. Figure (b)
shows the timing diagram for the pulses required to rotate the PM stepper motor illustrated in Figure (a).
This sequence of positive and negative pulses causes the motor shaft to rotate counterclockwise in 90°
steps. The waveforms of Figure (c) illustrate how the pulses can be overlapped and the motor made to
rotate counterclockwise at 45° intervals.
Exercise tasks:
Exercise 07: Implementation of Process control trainer using PLC ladder diagram.
Definition:
Process control is arguably the largest area of control engineering application. It is used in the
manufacturing, infrastructure and service industries, and these are grouped under the common heading:
the process industries. Most of the things that we use or do are associated with a ‘process’ of some form.
For example, if you print this page on to paper, then you are immediately using two process industry
products: – for the paper, the papermaking industries, and for the ink, the chemical process industries.
Other typical products of process industries are: metals, textiles, rubber, polymers, paint, food and drinks,
pharmaceuticals and chemicals of all kinds. Of particular importance are the process industries that
extract, process and distribute natural resources: such as petrochemicals, gas, minerals and electricity.
Exercise tasks:
Exercise tasks:
Ladder Diagram:
Exercise 08: To perform Traffic Light Control using PLC ladder diagram.
Definition:
The objective is to control the operation of a traffic signal. The working is as follows:
1. There are four roads connected as shown in fig. Each road consists of 3 signals green, yellow and
red.
2. Initially green signal of road 1 is ON. After 60 seconds Green signal of road 1 goes off and Yellow
signal of road 1 is ON. After 5 seconds Yellow signal of road 1 goes off and red signal is ON.
During this operation of road 1 other roads show red signal.
3. After road 1 shows red signal, cycle repeats for road 2. During this operation other roads show red
signal.
4. After road 2 shows red signal, cycle repeats for road 3. During this operation other roads show red
signal.
5. After road 3 shows red signal, cycle repeats for road 4.
6. The cycle will repeat.
Exercise tasks
Sequence of task
Only one green signal should ON at a time. Green signal should light for 60 sec .Before green
signal start there should be yellow signal for 5 sec. after green signal there should be red signal. Rotate
the signal sequentially in clock wise direction.
Exercise 9: To study and implement Bottle filling Plant using PLC ladder diagram.
Definition:
The bottle filling system is used to control the liquid level in bottle & moved to next bottle, it also
maintains the liquid level in process tank. Solenoid valves are used to maintain the process automatically
and continuously.
In this processing system, Low-level & High level sensors are used to sense the liquid level in
process tank. Then solenoid valve will open & stepper motor will stop the rotation whenever Bottle sensor
& Bottle position sensor will get the output value. After average value of time fill the liquid in Bottle,
automatically solenoid valve will close & stepper motor rotates now. This process repeated again and
again.
First of all, in the process tank is in low level switch will get control. It causes for switch ON the
motor, then fill the liquid to process tank, liquid level increases continuously. The motor will goes to OFF
state, whenever the liquid level will reach the high level.
Stepper motor is rotating now. It will stop depending upon two factors such as result of bottle
sensor [Proximity Inductive Sensor] and result of bottle position sensor [Opto-Coupler]. If the two sensors
sense the bottle, the stepper motor will be in stop mode, then it will fill the liquid. Simultaneously, solenoid
valve will open, which depends upon the output value of two sensors. We will set into particular time-
delay in PLC, after the time delay, solenoid valve will move into close position, which depends upon the
average value of time to fill the bottle. Simultaneously, stepper motor starts now to rotate the platform,
whenever the two sensor will sense, then stop the stepper motor and solenoid valve will open. This process
is going on continuously. If the process reach up to the low level of liquid in process tank then turn ON
the pump to fill the process tank.
Exercise tasks:
Definition:-
The conveyor control system deals with the flow of material in an Industrial setup. Beginning
rights from the raw material in the store to the finished product. The most common application of conveyor
system is in material handling process.
Construction: -
The conveyor control systems trainer consists of the following parts
1. Conveyor
2. Stepper Motor
3. Sensor
1. Conveyor
This mechanical setup consists of belt, rotated using a stepper motor and a rotor on the other side when
the stepper motor rotates the rotor on the other side also rotates and a continuous motion is produced.
2. Stepper motor
Two number of stepper motors are used one is used to rotate the conveyor, and the other one to pick
the material from the conveyor and drop in the storage tank. The stepper motor in the trainer kit produces
the required rotating motion to the bottle platform. The stepper motor windings Coil 1, Coil 2, Coil 3, Coil
4 can be cylindrically excited with the DC current to run the motor in the clock wise direction. By reversing
the phase sequences Coil 1, Coil 4, Coil 3, Coil 2. The 4 Coils of the stepper motor are arranged in a
fashion to rotate in steps. The steps angle for rotation of stepper motor is governed by numbering of stator
and rotors.
Working principle
The materials are loaded on the conveyor and the various sensors are used to sense their Respective
Materials. When the metal is sensed, the Conveyer is stopped for particular time delay then the number of
metals are counting, again stepper motor is moving. That process continues.
Exercise tasks:-
1. Determine the timing diagram for control of stepper motor.
2. Control the operation of PLC based on proximity sensor
3. Prepare a clamp connection plan.
4. Prepare the PLC program.
Exercise 11: Study of Industrial Process and implementation using PLC ladder diagram.
Sequence of task:
In an industrial application there is machine with a large steel shaft supported by bearings. This shaft is
coupled to a large electric motor. The bearings need lubrication, which is supplied by an oil pump driven
by a small electric motor. The sequence is as follows:
1. To start the machine, the operator turns switch on.
2. Before the motor shaft starts to turn, the bearings are supplied with oil by the pump for 10
sec.
3. The bearings also receive oil when the machine is running.
4. When the operator turns switch off to stop the machine, the oil pump continues to supply
oil for 15 sec.
5. A timer is used to track the total running time of the pump. When the total running time is
3h, the motor is shut down and a pilot light is turned on to indicate that the filter and oil
need to be changed.
6. A reset button is provided to reset the process after the filter and oil have been changed.
Exercise definition:
Work pieces are to be drilled by a drilling tool. When a start pushbutton is pressed, a work piece from
the magazine is pushed under the drill by cylinder 1. Afterwards, cylinder 3 with drilling machine will
drill the work piece. When the cylinder 3 is retracted again, cylinder 2 lifts the work piece while
simultaneously, valve of blower opens and blows the work piece off the work bench.
Basic position:
• Cylinder 1 is retracted (Home position).
• Cylinder 2 is retracted (Home position).
• Cylinder 3 is retracted (Home position).
The drill tool's operating mode is defined as follows: The system is put into operation by means of the
start command via the “Start pushbutton (P1)” of the control panel. After activation of P1, Cylinder 1 is
extended and holds the work piece in the drilling position. As soon as the limit sensor LS1 "Cylinder 1
extend" is reached, the cylinder moves back to the basic position. Cylinder 3 with drill is extended and
drills the work piece. If the limit sensor LS4 "Cylinder 3 extend" is reached, Cylinder 3 moves back into
the basic position. Cylinder 2 is extended and lifts the work piece. If the limit sensor LS5 "Cylinder 2
extend" is reached, the compressed air blows the work piece off the work bench. After a delay time of 2
seconds, Cylinder 2 moves back into the starting position. The system has reached its basic position. As
soon as the limit sensor LS6 "Cylinder 2 retract" is confirmed, the process is repeated. It must be
possible to stop the system at any time using the P2 pushbutton “Stop”. Restart shall only be possible to
stop the system at any time using the P2 pushbutton “Stop”.
Objective:
A PLC (Programmable Logic Controller) is used for the control of industrial machines and process
installations. The PLC was designed especially for this purpose and offers the possibility of a flexible
configuration by means of hardware and software to be adapted to the machine or process which needs
to be controlled. Analog signals such as pressure, flow and temperature from the process are evaluated
by the PLC and based on these signals the process is controlled by the PLC.
Exercise tasks:
Definition:-
A seven-segment display (SSD), or seven-segment indicator, is a form of electronic display device for
displaying decimal numerals that is an alternative to the more complex dot matrix displays. Seven-
segment displays are widely used in digital clocks, electronic meters, basic calculators, and other
electronic devices that display numerical information.
Exercise tasks:
Convert 3 bit binary coded number into equivalent BCD number and display the number in seven
segment display form on display window.
Sequence of task
Each segment of the seven segment display is connected to individual output. To display any
number, the output required for that number is to be made ON. Suppose the number to display is 1.The
segment required for 1 is a and b.so to display 1, output 2 and 3 is to be made ON. Number on display
depends on the combination of S1, S2and S3 switch .S1 stands for first bit of binary coded number.
Similarly, S2 and S3 are the 2nd and 3rd bit.
Exercise 15: Implementation of Lift Control logic using PLC ladder diagram.
Hardware: -
Hardware Description: -
1. Floor sensors
Roller Switches are used as floor sensors. When lift car crosses the roller, the roller holder moves
inside and the push button will be pressed. The sensor delivers +5V .when the push button is pressed. This
voltage is given to the TTL Input of the PLC Trainer. Ground Floor and Second Floor have one roller
switch each First Floor feedback is taken from two roller switches to detect Top and Bottom edges of the
Lift Car. This is necessary to stop the lift car at same position in both directions.
Exercise tasks:
1. Determine the type of the signal encoders and receivers and prepare an assignment list.
2. Prepare a circuit connection plan and flow chart.
3. Prepare the PLC program.
Definition:
Density based traffic light system can be implanted where the problem of high traffic is present.
Conventional traffic light system is based on fixed time concept allotted to each side of the junction which
cannot be varied as per varying traffic density. Junction timings allotted are fixed. Sometimes higher
traffic density at one side of the junction demands longer green time as compared to standard allotted time.
In density based traffic light system, the signal timing changes automatically on sensing the traffic density
at the junction.
Sequence of task:
There are pair of IR sensors used at each road. Whenever the output of any of these pair of IR sensor is
high, the green signal for that road remain high for higher time. If there is no sensor giving the high output,
the sequence will go normally as in experiment 8.