Door Alarm with Timed Siren
Alarm system that detects door opening when armed, activates siren on intrusion and automatically turns it off after 3 minutes with doors closed.
Features
| Feature | Value |
|---|---|
| Door inputs | IN04, IN05 |
| Arm input | IN06 |
| Siren output | XP01 |
| Siren timeout | 3 minutes |
| Door logic | Active to ground |
Flow diagram
Complete configuration
// ============================================================================
// DOOR ALARM WITH TIMED SIREN
// ============================================================================
// --- INITIAL CONFIGURATION ---
// 3 minute timer to turn off siren (starts disabled)
>STD03D00180<
// --- LOGGING (optional) ---
>SRL12E;TRG=IN04+;ACC={GCR13L}< // IN04 opens
>SRL13E;TRG=IN04-;ACC={GCR14L}< // IN04 closes
>SRL14E;TRG=IN05+;ACC={GCR15L}< // IN05 opens
>SRL15E;TRG=IN05-;ACC={GCR16L}< // IN05 closes
>SRL16E;TRG=IN06+;ACC={GCR17L}< // IN06 disarmed
>SRL17E;TRG=IN06-;ACC={GCR18L}< // IN06 armed
// --- MAIN LOGIC ---
// Intrusion detection
>SRL40E;TRG=TT*;CND=IN04IN05|IN06!&XP01!&;ACC={SSSXP0111}{GCR19L}<
// Start countdown when doors close
>SRL41E;TRG=IN04!IN05!&+;CND=XP01;ACC={STD03R00180}{GCR20L}<
// Cancel countdown if door opens during alarm
>SRL42E;TRG=IN04IN05|+;CND=XP01;ACC={STD03C}{GCR21L}<
// Turn off siren on timeout
>SRL43E;TRG=TD03+;ACC={STD03C}{SSSXP0100}{GCR22L}<
// --- MANUAL CONTROL ---
>SRL44E;TRG=IN02-;ACC={SSSXP0211}< // IN02 activates XP02
>SRL45E;TRG=IN03-;ACC={SSSXP0200}< // IN03 deactivates XP02Command reference
| Command | Description | Documentation |
|---|---|---|
STD | Timer configuration | TD Command |
SRL | Event engine rules | RL Command |
SSS | System state setting | SS Command |
GCR | CR report generation | CR Report |
Last updated