Download presentation
Presentation is loading. Please wait.
Published byHerbert Day Modified over 9 years ago
1
PLC Based Residential Alarm System John Hiddema University of Idaho - ECE 504 - Spring 2012
2
Project Goals Project Description Sensors PLC MODBUS RTU over Serial (RS-232) MODBUS Polling Tool Excel Logger and SMS Utility (VBA Based) Project Functionality Video Project Development Issues Future Project Additions/Improvements
3
Wire inputs to a PLC and learn to program a PLC with ladder logic Alarm for events Establish local communication to the PLC via MODBUS RTU over serial (RS-232) Establish remote notification of events via SMS text messages on cell phone
4
Four sensors (‘arm system’, ‘door alarm’, ‘window alarm’, ‘motion alarm’) wired to PLC Inputs Ladder logic in the PLC maps PLC Inputs to PLC Outputs (coils) PLC coil status is polled via MODBUS RTU Poll utility MODBUS data is continuously logged in real-time and alarms are sent via SMS to homeowners cell phone
5
PLC DOOR ALARM ARM SYSTEM PC with MODBUS POLL & EXCEL LOGGER AND SMS UTILITY WINDOW ALARM MOTION ALARM LOCAL AUDIBLE ALARM/BUZZER RS232 SENSORS Email Verizon SMS Gateway LOCAL ALARMS SMS
6
Sensors simulated with four toggle switches on the side of the PLC enclosure Toggle switches were used instead of actual “field” wiring/sensors to facilitate system development “Normally-open” contacts used on the toggle switches Toggle switches mimic magnetic door and window sensors and also a motion sensor with NO/NC contacts
8
DirectLOGIC Micro Programmable Logic Controller (DL05 PLC) Model used: D0-05AR 8 AC inputs 6 relay outputs, 2A/point I/O Rating: 110/220 (+10%, -15%) VAC Two communication ports Supports MODBUS RTU master/slave, DeviceNET slave, Proibus slave and Ethernet networking
10
PLC Program Ladder Logic Arm Alarm System Door Alarm (If Armed) Window Alarm (If Armed) Motion Alarm (If Armed)
11
“Free” MODBUS polling tool (MODBUS Poll) utilized as a MODBUS master to poll the PLC Coil (outputs) MODBUS address on PLC starts at address 2048. Four coils polled MODBUS RTU protocol Serial Connection (RS-232) MODBUS Poll has data logging capabilities direct to Excel
14
Custom Excel data logging tool written to interpret data logs VBA code utilized to interpret coil status and send pre-defined email via Microsoft Outlook Separate distinct messages are sent for each event (i.e. “Alarm System Armed”, “Door Alarm” etc.) Verizon SMS gateway and “vtext” address utilized for text messaging. For example: 555-555-5555@vtext.com sends a text message to 555-555-5555
17
Link: www.youtube.com/watch?v=ZuekagVs-3w
18
Physical mounting and wiring of the PLC took some time Learning the DirectSoft programming tool and establishing communication with the PLC was a bit of a challenge The biggest effort was communicating over MODBUS, establishing the logging, and writing VBA code to interpret the logs and send an email via Outlook
19
Install permanent field sensors for door/window/motion alarms Install a permanent local audible alarm/buzzer Possibly add more sensors and actuation (e.g. water sensor > start sump pump) Improve the functionality and reliability of the Excel Logger & SMS Utility tool
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.