Académique Documents
Professionnel Documents
Culture Documents
(//www.sanfoundry.com)
Practice following PLC examples which are from Digital Logic, Home and Industrial Automation areas.
Get Started
Problem Description
Consider the design of a Burglar Alarm for a house. This alarm will be activated if an unauthorized person is
detected by a Window Sensor or a Motion Detector. Implement this Alarm System in PLC using Ladder Diagram
programming language.
Problem Solution
Basically two sensors are used, one is Motion Detector and other one Window Sensor.
Window sensor is nothing but a loop of wire that is a piece of thin metal foil which encircles the window.
The motion detector is designed such that when a person is detected, the output of sensor goes true.
Important thing to note here is that in Window Sensor, current is always passing until there is a breakage in
glass of a window. Hence output is always true. When alarm system is active and someone tries to break the
window, current does not flow through the metal foil causing output to go false.
Karnaugh-Map can be used here to solve the equation and then to implement its logic in Ladder Diagram.
(https://www.sanfoundry.com/wp-content/uploads/2016/09/plc-program-burglar-alarm-security-system-01.png)
advertisement
Note: This security system is normally not implemented using PLC since the hardware cost of the entire system will
be effectively high. Purpose of this problem is just to learn how to implement such logics in PLC.
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/ 3/9
PLC Program
2/24/2019 PLC Program for Burglar Alarm Security System - Sanfoundry
Here is PLC program for Burglar Alarm Security System, along with program explanation and run time test cases.
(https://www.sanfoundry.com/wp-content/uploads/2016/09/plc-program-burglar-alarm-security-system-02.png)
advertisement
Problem Description
RUNG000 simply shows a latching of a coil O:2/0 to activate the entire security system.
When Activate button I:1/0 is pressed momentarily, the security system is activated.
If the system is not activated, alarm does not indicate anything since sensors will have no effects on the
Alarm Coil O:2/1.
When system is active and Motion detector detects a person, the alarm coil will momentarily go high
activating the Alarm O:2/2 which stays ON until I:1/4 is pressed manually.
As we can see in RUNG001 that XIO (Normally Closed) contact is used for Window Sensor input I:1/3
because it is normally in true state when not activated. So when the breakage of a window is detected, it goes4/9
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/
false
2/24/2019 from its true condition allowing PLC
Alarm Coil for
Program O:2/1
BurglartoAlarm
go Security
high for a moment
System which in turn activates Alarm
- Sanfoundry
O:2/2.
In RUNG002, latching has to be provided in order to keep the alarm ringing even if the detection by the
sensors are momentary or to be accurate, pulsating.
« Prev Page - PLC Program to Latch and Unlatch Output With Time Delay (https://www.sanfoundry.com/plc-
program-latch-unlatch-output-time-delay/)
» Next Page - PLC Program for a Car Parking System (https://www.sanfoundry.com/plc-program-car-parking-
system/)
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/ 6/9
2/24/2019 PLC Program for Burglar Alarm Security System - Sanfoundry
Name*
Email*
Subscribe
Best Careers
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our
Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola,
Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-
Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree,
Cognizant and Startups.
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/ 7/9
2/24/2019 PLC Program for Burglar Alarm Security System - Sanfoundry
Best Trainings
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/ 8/9
Metallurgical
2/24/2019 Engineering Books (https://www.sanfoundry.com/best-reference-books-metallurgical-engineering/)
PLC Program for Burglar Alarm Security System - Sanfoundry
India Internships
About Sanfoundry
About Us (https://www.sanfoundry.com/about/)
Copyright (https://www.sanfoundry.com/copyright/)
Terms (https://www.sanfoundry.com/tos-privacy-policy/)
Privacy Policy (https://www.sanfoundry.com/privacy-policy/)
Jobs (https://www.sanfoundry.com/jobs/)
Bangalore Training (https://www.sanfoundry.com/coursesfees/)
Online Training (https://www.sanfoundry.com/online-training-san-linux-kernel-device-drivers/)
Developers Track (https://www.sanfoundry.com/salary-50l/)
Mentoring Sessions (https://www.sanfoundry.com/professional-mentoring-coaching-career-guidance-cto/)
Contact Us (https://www.sanfoundry.com/contact/)
Sitemap (https://www.sanfoundry.com/sitemap_index.xml)
https://www.sanfoundry.com/plc-program-burglar-alarm-security-system/ 9/9