Professional Documents
Culture Documents
Sensorics - PLC Lab - Manual - MTE2243
Sensorics - PLC Lab - Manual - MTE2243
MTE 2243
IV Semester B.Tech Mechatronics 2024
Department of Mechatronics 1
SENSORICS & PLC LAB MANUAL
NAME: _
REG NO:
ROLL NO:
DEPARTMENT OF MECHATRONICS
Department of Mechatronics 2
SENSORICS & PLC LAB MANUAL
VISION OF MAHE
• Global leadership in human development, excellence in education and healthcare.
MISSION OF MAHE
• Be the most preferred choice of students, faculty and industry
• Be in the top 10 in every discipline of education health sciences, engineering and management.
VISION OF MIT
Excellence in Technical Education through Innovation and Teamwork.
MISSION OF MIT
Educate students professionally to face social challenges by providing a healthy learning environment
grounded well in the principles of engineering, promoting creativity, and nurturing teamwork.
Department of Mechatronics 3
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 4
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 5
SENSORICS & PLC LAB MANUAL
CLO’s :
At the end of the course the students will be able to:
CLO1 Identify the industrial sensor and draw the characteristic.
CLO2 Implement a wiring connection with different logical combination.
CLO3 Demonstrate the hardware and software components of PLC.
CLO4 Develop ladder programming for different industrial applications.
CLO5 Create an individualistic prototype model using sensors and PLC technology.
Department of Mechatronics 6
SENSORICS & PLC LAB MANUAL
LIST OF EXPERIMENTS:
Sensorics Lab
Sr TITLE OF EXPERIMENT DATE Max FACULTY MARKS
No. Marks SIGN Obtained
7. Cleaning System
10
8. Traffic Signal
10
Department of Mechatronics 7
SENSORICS & PLC LAB MANUAL
INDUCTIVE SENSOR:
Aim: Find out response of an inductive sensor for various materials and write observations in tabular
form.
Assembly Diagram:
Procedure:
1. Mount the inductive sensor NJ (8 mm) onto the elevation compensation in the middle of the
mounting plate and complete the electrical connections (see assembly diagram).
2. Move different material samples from the table one after another in front of the sensor
(manually).
3. Please observe the state of the LEDs.
4. Note down, which materials the sensor detects.
Observation Table:
Department of Mechatronics 8
SENSORICS & PLC LAB MANUAL
Brass
Sheet of paper
Foam
V2A (stainless steel)
CAPACITIVE SENSOR:
Aim: Find out response of a capacitive sensor for various materials and write observations in tabular
form.
Assembly Diagram:
Procedure:
1. Mount the capacitive sensor CJ (8 mm) onto the elevation compensation in the middle of the
mounting plate and complete the electrical connections (see assembly diagram).
2. Move different material samples from the table one after another in front of the sensor
(manually).
3. Please observe the state of the LEDs.
4. Note down, which materials the sensor detects.
Department of Mechatronics 9
SENSORICS & PLC LAB MANUAL
Observation Table:
Department of Mechatronics 10
SENSORICS & PLC LAB MANUAL
MAGNETIC SENSOR:
Aim: Find response of a magnetic sensor for various materials in different alignment and write
observations in tabular form.
Assembly Diagram:
Procedure:
1. Mount the magnetic field sensor MB (60 mm) onto the elevation compensation in the middle
of the mounting plate and complete the electrical connections (see assembly diagram).
2. Move different material samples from the table one after another in front of the sensor
(manually).
3. Please observe the state of the LEDs.
4. Note down, which materials the sensor detects.
Observation Table:
1.3 Behavior of magnetic field sensor
Department of Mechatronics 11
SENSORICS & PLC LAB MANUAL
Assembly Diagram:
Procedure:
1. Mount the light reflection sensor OJ onto the elevation compensation in the middle of the
mounting plate and complete the electrical connections (see assembly diagram).
2. Move different material samples from the table one after another in front of the sensor
(manually).
3. Please observe the state of the LEDs.
4. Note down, which materials the sensor detects.
Department of Mechatronics 12
SENSORICS & PLC LAB MANUAL
Observation Table:
Department of Mechatronics 13
SENSORICS & PLC LAB MANUAL
ULTRASONIC SENSOR
Aim: Find response of an ultrasonic sensor for different materials.
Assembly Diagram:
Procedure:
1. Mount the ultrasonic sensor onto the elevation compensation in the middle of the mounting
plate and complete the electrical connections (see assembly diagram).
2. Move different material samples from the table one after another in front of the sensor
(manually).
3. Please observe the state of the LEDs.
4. Note down, which materials the sensor detects.
Observation table:
1.5 Behavior of an ultrasonic sensor
Material Sample Detected
Yes No
Metal
Plastic, Black
Plastic, white
Solenoid
Foam
Cardboard
Department of Mechatronics 14
SENSORICS & PLC LAB MANUAL
The exercise shows the possibility of logic operations of switch outputs of proximity switches. Such
simple logical operations are useful, whenever long leads to the control unit are necessary or whenever
additional sensors are integrated into the system. OR-Logic-Operations by parallel operation of the
outputs and And-operations by a series switching are possible.
In the exercise the inductive proximity switch NJ, the capacitive sensor CJ, the reflection light scanner
OJ with mounted fiber optics TLG and the ultrasonic sensor have to be operated logically.
Assembly Diagram:
OR Circuit
Department of Mechatronics 15
SENSORICS & PLC LAB MANUAL
AND Circuit
Procedure:
1. Connect all sensors in the given manner for respective logic operation.
Observation:
Exercise Question 1: Connect all five proximity (inductive, capacitive, light reflection, Magnetic and ultrasonic)
sensors in parallel and list out its behavior of detecting any 5 materials with the maximum range of distance in
mm at which it detects the objects.
Exercise Question 2: Connect the combination of inductive, capacitive , Magnetic and ultrasonic sensors in
NOR & XOR logical operation pattern and list out its behavior of detecting any 5 materials.
Department of Mechatronics 16
SENSORICS & PLC LAB MANUAL
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
3. The tapered measuring flag (18mm) made of St37 is used as standard measuring plate.
4. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
5. Reposition the inductive sensor on the elevation compensation, such that its active surface
aims at the center of the material sample.
Department of Mechatronics 17
SENSORICS & PLC LAB MANUAL
6. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
7. Switch on the power supply unit.
8. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
9. Move sample and note down readings.
Observation Table:
Switching distance and hysteresis of inductive sensor
Reference value:
Switching Switching Difference to Switching Switching Switching
status point reference distance point hysteresis
mA value mm difference %
mA mm
ON
OFF
For checking the reduction factor of the Inductive sensor NJ (8 mm) for
different metals:
The reduction factor is defined as the ratio of the determined ON switch point / switch ON point for
Steel sample St 37
• Displacement [mm]= (switch ON current [mA] – reference current [mA]) x 18.75
• Reduction Factor= Switching distance_ON/ Switching distance_ON_St37
• R%= R x 100%
Department of Mechatronics 18
SENSORICS & PLC LAB MANUAL
Assembly Diagram:
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
3. The tapered measuring flag (18mm) made of St37 is used as standard measuring plate.
4. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
5. Reposition the inductive sensor on the elevation compensation, such that its active surface
aims at the center of the material sample.
6. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
7. Switch on the power supply unit.
8. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
9. Move sample and note down readings.
10. Change materials and note down the readings.
Department of Mechatronics 19
SENSORICS & PLC LAB MANUAL
Observation Table:
Inductive sensor: reduction factor
Reference Value:
Material Current/ Switch on point Reduction factor
mA mm %
Steel St37
Copper
Aluminum
Small Solenoid
Brass
Stainless steel
V2A
Department of Mechatronics 20
SENSORICS & PLC LAB MANUAL
Aim: Determine the response curve of the inductive sensor NJ (8 mm) with the standard measuring
plate.
This curve shows the relationship of operating range and lateral displacement of the material sample.
Assembly Diagram:
Department of Mechatronics 21
SENSORICS & PLC LAB MANUAL
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement
somewhat above in the middle of the mounting plate.
3. The tapered measuring flag (18mm) made of St37 is used as standard measuring plate (steel).
4. Fix it at the non-rotatable sample carrier, it has to be parallel to the rail of the guide carriage.
5. The elevation compensation is fixed in parallel to the rail in a distance of approx. 2 ... 3 cm to
the carriage.
6. Fix the sensor at the elevation compensation.
7. The active sensor face must touch the material sample that has been moved in front of the
sensor.
8. Switch on the power supply unit.
9. The switch output of the sensor is active (LED lights up).
10. Now move the sample material left and right to the sensor and note down the readings.
11. Repeat the experiment for the capacitive sensor.
Observation Tables:
Inductive sensor response curve
Switching Switch on points Difference Lateral
distance mA left mA right mA mm displacement
mm X
Mm
8
7
6
4
2
0
Observations
Department of Mechatronics 22
SENSORICS & PLC LAB MANUAL
Response curve:
Exercise Question1: Measure the Switching Distance, Switching Hysteresis and Reduction
Factor of the inductive sensor NJ (8 mm) for the brass and aluminum measuringplates to find out
the minimum and maximum switching point ranges.
Exercise Question2: Determine the response curve of the inductive sensor NJ (8 mm) for the
brass and aluminum measuringplates.
Department of Mechatronics 23
SENSORICS & PLC LAB MANUAL
Aim: Determine the Switching distance of the direct detection sensor OJ with the standard measuring
plate made of white plastic. Examine the dependence between selected sensitivity and operating range
or hysteresis.
Assembly Diagram:
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
3. The white plastic is used as standard measuring plate.
Department of Mechatronics 24
SENSORICS & PLC LAB MANUAL
4. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
5. Reposition the light sensor on the elevation compensation, such that its active surface aims at
the center of the material sample.
6. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
7. Switch on the power supply unit.
8. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
9. Move sample and note down readings.
10. Now fix optical waveguide to the light sensor and repeat the procedure.
Observation table:
Switching distance and hysteresis of direct detection sensor (without optical waveguide)
Reference Value:
Material/ Switch on /off point Difference to Switch on/ off point Hysteresis
Distance reference value %
mm mA ON mA OFF mA ON mA OFF mm ON mm OFF
White
plastic
250mm
White
plastic
200mm
Aim: Determine the reduction factor of the direct detection light sensor with and without optical
waveguide for different materials.
• Displacement [mm]= (current difference w.r.t. reference [mA]) x 18.75
• Reduction Factor= Switching distance_ON/ Switching distance_ON_St37
• R%= R x 100%
Department of Mechatronics 25
SENSORICS & PLC LAB MANUAL
Assembly Diagram:
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
3. The white plastic is used as standard measuring plate.
4. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
5. Reposition the light sensor on the elevation compensation, such that its active surface aims at
the center of the material sample.
6. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
7. Switch on the power supply unit.
8. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
9. Move sample and note down readings.
10. Change materials and note down the readings.
11. Calculate reduction factor based on the findings.
12. Now fix optical waveguide to the sensor and repeat the procedure.
Department of Mechatronics 26
SENSORICS & PLC LAB MANUAL
Observation Table:
OJ reflection sensor: reduction factor
Reference Value:
Material Current/ Switch on point Reduction factor
mA mm %
Plastic, white
Plastic gray
Plastic red
Plastic green
Plastic black
Plastic clear
Plastic tinted
Steel St37
Aluminum
V2A Steel
Copper
Brass
Switching Distance, hysteresis and reduction factor of the direct detection sensor
OJ with optical waveguide
Aim: Determine the operating range of the direct detection sensor OJ with the standard measuring
plate made of white plastic. Examine the dependence between selected sensitivity and operating range
or hysteresis.
Department of Mechatronics 27
SENSORICS & PLC LAB MANUAL
Assembly Diagram:
Procedure:
11. Turn the mounting plate transversely.
12. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
13. The white plastic is used as standard measuring plate.
14. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
15. Reposition the light sensor on the elevation compensation, such that its active surface aims at
the center of the material sample.
16. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
17. Switch on the power supply unit.
18. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
19. Move sample and note down readings.
20. Now fix optical waveguide to the light sensor and repeat the procedure.
Department of Mechatronics 28
SENSORICS & PLC LAB MANUAL
Observation table:
Switching distance and hysteresis of reflection light sensor with optical waveguide
Reference Value:
Material/ Switch on /off point Difference to Switch on/ off point Hysteresis
Distance reference value %
mm mA ON mA OFF mA ON mA OFF mm ON mm OFF
White
plastic
150mm
Aim: Determine the reduction factor of the direct detection light sensor with and without optical
waveguide for different materials.
• Displacement [mm]= (current difference w.r.t. reference [mA]) x 18.75
• Reduction Factor= Switching distance_ON/ Switching distance_ON_St37
• R%= R x 100%
Assembly Diagram:
Department of Mechatronics 29
SENSORICS & PLC LAB MANUAL
Procedure:
13. Turn the mounting plate transversely.
14. Mount the guide carriage with sample carrier and the device for distance measurement in the
middle of the mounting plate.
15. The white plastic is used as standard measuring plate.
16. Place the devices from the device list on the matrix base according to the assembly diagram
and fix the standard measuring plate at the sample carrier with graduation.
17. Reposition the light sensor on the elevation compensation, such that its active surface aims at
the center of the material sample.
18. The sensor must reach over the distance sensor towards the material sample, to such a degree
that it can touch it.
19. Switch on the power supply unit.
20. If the material sample touches the sensor the measuring instrument will display a value > 4
mA. Note down this value as the reference value.
21. Move sample and note down readings.
22. Change materials and note down the readings.
23. Calculate reduction factor based on the findings.
24. Now fix optical waveguide to the sensor and repeat the procedure.
Observation Table:
Reduction factor with optical waveguide
Reference Value:
Material Current/ Switch on point Reduction factor
mA mm %
Plastic, white
Plastic gray
Plastic red
Plastic green
Plastic black
Plastic clear
Plastic tinted
Steel St37
Aluminum
V2A Steel
Copper
Brass
Department of Mechatronics 30
SENSORICS & PLC LAB MANUAL
Exercise Problem1: Find out Operating range, hysteresis and reduction factor of direct detection
sensor OJ with and without optical waveguide.
Exercise Problem 2: Calibrate the switching distances, hysteresis and reduction factor of the
ultrasonic sensor.
Department of Mechatronics 31
SENSORICS & PLC LAB MANUAL
Procedure:
1. A white plastic plate (80 x 80 mm) serves as standard measuring plate.
2. Place the devices on the mounting plate according to the assembly diagram.
3. Mount the ultrasonic sensor onto the elevation compensation in a way that its active sensor
face (white transducer) aims at the material sample.
4. By repositioning the sensor on the elevation compensation it aims at the center of the sample.
5. Switch on the power supply unit.
Department of Mechatronics 32
SENSORICS & PLC LAB MANUAL
6. Move the measuring flag towards the sensor, to such a degree that it touches the transducer.
7. Note down the indicated value as reference value.
8. Teach-in of the switch point close to the sensor (100 mm). Move the target 100 mm away
from the sensor. Press button A1 at the UB-Prog and touch the white transducer at the sensor
simultaneously with the finger.
9. Is the sample still positioned at 100 mm? Then press button A2.
10. After taking readings repeat steps 8 and 9 for 200mm.
11. Note down the readings in observation table and find hysteresis.
Observation table:
Calibration and hysteresis of ultrasonic sensor
Reference Value:
Taught Switching point Hysteresis
Switching ON mA ON mm OFF mA OFF mm mA mm %
distance
mm
100
200
Plastic 40x80
Cardboard
Foam
Metal, any
Department of Mechatronics 33
SENSORICS & PLC LAB MANUAL
Aim: Determine the response curve of the magnetic sensor MJ (60 mm).
These curves show the relationship between operating range and lateral displacement of the material
sample, in this case a cylindrical permanent magnet. For magnetic sensors shape and size of the
response range is dependent on the size (strength) of the approached magnet and of the geometry of
its magnetic field.
• Difference [mm]= (current difference w.r.t. reference [mA]) x 18.75
• Lateral Displacement [mm]= (difference [mm] – material width [mm]) / 2
Take following observations and plot graph for respective observation
• Magnetic sensor, response curve for vertical approach, large solenoid.
• Magnetic sensor, response curve for parallel approach, large solenoid.
• Magnetic sensor, response curve for vertical approach, small solenoid.
• Magnetic sensor, response curve for parallel approach, small solenoid.
Assembly Diagram:
Department of Mechatronics 34
SENSORICS & PLC LAB MANUAL
Procedure:
1. Turn the mounting plate transversely.
2. Mount the guide carriage with sample carrier and the device for distance measurement
somewhat above in the middle of the mounting plate.
3. The large and small solenoids are used as standard measuring plates.
4. Fix it at the non-rotatable sample carrier, it has to be parallel to the rail of the guide carriage.
5. The elevation compensation is fixed in parallel to the rail in a distance of approx. 2 ... 3 cm to
the carriage.
6. Fix the sensor at the elevation compensation.
7. The active sensor face must touch the material sample that has been moved in front of the
sensor.
8. Switch on the power supply unit.
9. The switch output of the sensor is active (LED lights up).
10. Now move the sample material left and right to the sensor and note down the readings.
11. Repeat the experiment for different arrangements as mentioned in the aim of the experiment.
Observation tables:
Large solenoid vertical left to right
Reference value:
Switching Switching point Difference to reference Lateral displacement
distance mA ON mA OFF mA ON mA OFF mm ON mm OFF
mm
0
2
4
6
8
10
Department of Mechatronics 35
SENSORICS & PLC LAB MANUAL
Main curve
Reference value:
Switching Main curve Switching Difference to reference Lateral displacement
distance points
mm mA left mA right mA mm mm
75
70
65
60
55
50
35
20
10
8
6
4
0
Department of Mechatronics 36
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 37
SENSORICS & PLC LAB MANUAL
Exercise Problem 1: Develop Response curves of the magnetic sensorMJ with Parallel arrangement.
Exercise Problem 2: Develop Response curves of the magnetic sensorMJ with Vertical arrangement.
Department of Mechatronics 38
SENSORICS & PLC LAB MANUAL
The knowledge of material regarding the manufacturing automation using programmable logic
controller, is important for industrial engineer. Factory automation mainly covers; Machine level
automation, Production line or work cell automation, Shop floor automation, and Plant level
automation. The present manual focus on the 1st level of factory automation e.g. machine automation
level. It provides an introduction and application of programmable logic controller (PLC) with
illustrated example in automating the manufacturing processes. It also focuses on some problems and
applications of PLC in sequential and logic automations. Furthermore, it introduces different types of
logic sensors/actuators. Hence, this manual is intended as a reference manual on Manufacturing
Automation using PLCs, for both undergraduate engineering students as well as practicing engineers.
Description of Indra Control L20
The Indra Control L20 is a modular and scalable control. It combines the benefits of a compact small
control with a standardized I/O system on the basis of terminal technology. It is a hardware platform
that can be used for PLC applications. It provides onboard interfaces, e. g. high-speed inputs and
outputs (8 each) and communication interfaces, such as Ethernet, PROFIBUS and RS232. The locally
available I/O units can be extended by the Rexroth Inline I/O system, just by simply mounting the
components side by side. Application programs, incl. runtime, are completely stored to an easily
accessible standardized Compact Flash medium.
Department of Mechatronics 39
SENSORICS & PLC LAB MANUAL
Functional overview:
Department of Mechatronics 40
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 41
SENSORICS & PLC LAB MANUAL
The PLC training system is used to learn/consolidate knowledge of the programming languages specified in accordance
with IEC 61131-3, such as Ladder Diagram (LD), Function Block Diagram (FBD), Instruction List (IL) and Sequential
Function Chart (SFC) .To provide input sensors and voltage levels that are required for the programming exercises and the
available example PLC projects. To visualize digital output signals (through LED displays). For practical editing and
solving of additional PLC project exercises that are available.
The PLC training system can be used in all training and further development areas to learn and consolidate knowledge of
"PLC programming" either as a standalone or a networked solution. Each system is a separate learning island from the
"student's perspective", but it can also be addressed by the trainer's PLC programming device.
Department of Mechatronics 42
SENSORICS & PLC LAB MANUAL
Universal simulator for the PLC training system with working PLC projects:
• 24 ready-programmed example PLC projects on data media: for illustrative demonstration of different PLC programming
types/techniques. All projects can be downloaded, started, tested and directly monitored in the PLC training system.
• Suitably labeled templates: for clear visualization and operation of the example PLC projects.
• Universal board incl. cable kit for connection to the PLC training system: for ergonomic display and operation as well as
for inclusion of the templates.
Universal simulator
Software requirements:
• Microsoft operating system Windows 2000 professional or higher
• Internet protocol (TCP/IP) installed on the operating system side
• Correct installation of the "IndraWorks" programming environment supplied (for project planning and configuration of
the PLC)
• Correct installation of the "IndraLogic" PLC programming software provided (for creating and testing PLC programs)
The following figure shows a completely configured and program IndraLogic L20 project example
Department of Mechatronics 43
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 44
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 45
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 46
SENSORICS & PLC LAB MANUAL
Exercise definition:
A tank filling device simulator consists of 3 tanks that are equipped with signal
encoders. The tank filling device simulator system can be switched on using the S1
pushbutton called “Start”. For switching off the device simulator system, S2 pushbutton
“Stop” can be used. For the "Max" notifications of tank, the signal encoders S3, S5 and
S7 are used. For the "Min" notifications, signal encoders S4, S6 and S8 are used. The
storage tanks can be arbitrarily filled and emptied by hand manually.
Conditions:
1. For filling the tanks 1, 2 & 3, the valves Y1, Y2 and Y3 are used. Filling of the tanks
must happen in series i.e H1, H2, & H3.
2. A control is to secure that after an “empty” (Ex: for tank 1, S3 & S4 both must be
OFF) notification occurs, only 1 tank can be filled at a time in the specified order.
3. The filling of the next tank continues until the corresponding “full” notification has
occurred.
(i.e for Ex : if S3 & S4 both are ON , then only H1 should stop filling & next H2 should
start for filling)
4. Once all the tank fills, its water should start to drain out one after the other from H4,
H5 & H6.
Department of Mechatronics 47
SENSORICS & PLC LAB MANUAL
Exercise Question1: Write the LD program for A tank filling device simulator exercise, where all three
tanks must be filled parallelly. When s3, s5 & s7 sensors are ON, the inlet valves of all 3 tanks should
get close and outlet valves of all 3 tanks should open to drain.
Exercise Question2: the LD program for A tank filling device simulator exercise by applying AND
/OR logic gates for 3 Tanks, i.e ex: while any two tanks are in filling state, the 3rd tank shouldn’t be able
to fill.
Department of Mechatronics 48
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 49
SENSORICS & PLC LAB MANUAL
Exercise Question1: for the above same exercise design layout use s5 as start & s6 as stop buttons.
when s4 is ON with s1 , it indicates road work at second lane and hence only first lane can be used for
one way for 5 sec by indicating H1 , H2, H4 as ON & H3 OFF. After 5 seconds it should change to H3
, H2, H4 as ON & H1 OFF for opposite direction of vehicles to travel in one way in same lane. If s2 is
switched on all H1 , H2, H3 & H4 should get off.
Exercise Question2: for the above same exercise design layout use s5 as start & s6 as stop buttons.
Allow only 5 vehicles pass in one direction at a time as counter indication at s1. After 5 it has to change
to the opposite direction by letting vehicles to travel from s2 direction where count will be considered
from s2. When s2 reach 5 counts again it has to switch it s1 direction.
Department of Mechatronics 50
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 51
SENSORICS & PLC LAB MANUAL
Exercise Question1: The above cleaning system is switched on using the S1 pushbutton “Start” and switched
off usingthe S2 pushbutton “Stop”. Using the mode S3, manual operation is possible, using S4, automatic
operation can be selected. The tank of a cleaning system is to be cleaned by lowered and lifted of the basket of
sponge for 5 times with the delay at lowered state as 2 sec.
Exercise Question2: The above cleaning system is switched on using the S1 pushbutton “Start” and switched
off usingthe S2 pushbutton “Stop”. Using the mode S3, manual operation is possible, using S4, automatic
operation can be selected. The tank of a cleaning system is to be cleaned by lowered and lifted of the basket of
sponge for 6 times with the delay at each lowered state as 2 sec for first 3 times and the delay at each lowered
state as 5 sec for next 3 times .
Department of Mechatronics 52
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 53
SENSORICS & PLC LAB MANUAL
Department of Mechatronics 54
SENSORICS & PLC LAB MANUAL
Exercise Question1: The objective is to control the operation of a traffic signal for single road at a
time. The working is as follows:
• There are four roads connected as shown in fig. Each road consists of 3 signals red, yellow and
green.
• Initially the yellow signal of road 1 is ON (indicating vehicles to be ready), with red & green as
off. Also the remaining 3 roads with yellow & green signals should be off and red signal as ON.
• After 2 seconds Green signal of road 1 gets ON, where yellow goes off.
• After 5 seconds green signal of road 1 goes off, by making red signal ON.
• As road 1 red signal gets ON , the next road 2 red signal must go off by making yellow signal of
road 2 signal ON.
• Above process should repeat for all 4 roads one after the other for 3 times.
Exercise Question2: The objective is to control the operation of a traffic signal for double road at a
time. The working is as follows:
• There are four roads connected as shown in fig. Each road consists of 3 signals red, yellow and
green.
• Initially the yellow signal of road 1 & 2 is ON (indicating vehicles to be ready), with red & green
as off. Also the remaining 2 roads with yellow & green signals should be off and red signal as
ON.
• After 3 seconds Green signal of road 1&2 gets ON, where yellow goes off.
• After 10 seconds green signal of road 1&2 goes off, by making red signal ON.
• As road 1&2 red signal gets ON , the next roads 3&4 red signal must go off by making yellow
signal of road 3&4 signal ON.
• Above process should repeat for all 4 roads , where at a time two roads signals must work one
after the other for 4 times.
Department of Mechatronics 55