plc based residential alarm system john hiddema university of idaho - ece 504 - spring 2012
Post on 17-Dec-2015
216 Views
Preview:
TRANSCRIPT
PROJECT FINAL PRESENTATION
PLC Based Residential Alarm SystemJohn HiddemaUniversity of Idaho - ECE 504 - Spring 2012
PRESENTATION OVERVIEW
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
PROJECT GOALS
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
PROJECT DESCRIPTION
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
PROJECT DESCRIPTION – BLOCK DIAGRAM
PLCDOOR ALARM
ARM SYSTEM
PC with MODBUS POLL & EXCEL
LOGGER AND SMS UTILITY
WINDOW ALARM
MOTION ALARM
LOCAL AUDIBLE ALARM/BUZZER
INPU
TS
OU
TPU
TS
RS232
SENSORS
Verizon SMS Gateway
LOCAL ALARMS
SMS
PROJECT DESCRIPTION - SENSORS
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
PROJECT DESCRIPTION - SENSORS
PROJECT DESCRIPTION - PLC
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
PROJECT DESCRIPTION - PLC
PROJECT DESCRIPTION - PLCPLC Program Ladder Logic
Arm Alarm System
Door Alarm (If Armed)
Window Alarm (If Armed)
Motion Alarm (If Armed)
PROJECT DESCRIPTION - MODBUS
“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
PROJECT DESCRIPTION - MODBUS
PROJECT DESCRIPTION - MODBUS
PROJECT DESCRIPTION – EXCEL TOOL 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
PROJECT DESCRIPTION – EXCEL TOOL
PROJECT DESCRIPTION – TEXT MESSAGES
PROJECT FUNCTIONALITY VIDEO
Link:
www.youtube.com/watch?v=ZuekagVs-3w
PROJECT DEVELOPMENT ISSUES
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
FUTURE PROJECT ADDITIONS/IMPROVEMENTS
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
top related