Field fix / guideDesign DocumentVendor-agnostic (IEC 61131-3)BMSindustrial-automation

Lighting Automation Control — Control Design

Shared by TSIMEREZIVO Team · 4 Oct 2026 · 36 views

# BMS Template: Lighting Automation Control ## 1. Overview **Purpose:** Intelligent building lighting control integrating occupancy detection, daylight harvesting, scene management, and DALI bus control. Covers on/off scheduling, dimming, emergency lighting testing, and ASHRAE 90.1 compliance monitoring. **Industry Standards:** - ASHRAE 90.1-2019 (Lighting Power Density limits — W/m²) - IEC 62386 (Digital Addressable Lighting Interface — DALI) - DALI-2 (IEC 62386 Part 101/102/103 — updated device profile) - EN 1838 (Lighting for Emergency Lighting Systems) - NFPA 101 (Life Safety Code — Emergency egress lighting) - BS 5839 / EN 54 (Fire detection integration — switch off non-emergency lighting) - LEED v4 (Indoor Environmental Quality — EQ Credit: Enhanced Lighting Control) **Critical Constraints:** - **Emergency lighting:** CANNOT be switched off by BMS under any circumstances — hardwired to maintained circuit - **Fire alarm override:** All non-emergency lighting switches ON automatically when fire alarm activates (full illumination for evacuation) - **Minimum maintained illuminance:** 500 lux at task plane (offices per ISO 8995-1), 300 lux (corridors), 200 lux (stairwells) - **Occupancy timeout:** Maximum 30 min OFF delay after last motion detection (some codes require ≤ 20 min) - **Daylight harvesting:** Dimming level must not reduce maintained illuminance below task minimum - **DALI short circuit:** BMS must detect DALI bus faults and maintain last-known state - **Emergency test:** Automatic monthly 1-minute duration test; 3-hour annual discharge test (EN 1838) - **LPD (Lighting Power Density):** Log actual vs ASHRAE 90.1 LPD limits for compliance **Relevant Physics:** - Illuminance: **E = Φ / A** [lux = lm/m²] (Φ = luminous flux) - Daylight factor: **DF = E_indoor / E_outdoor × 100%** (cloudy sky reference) - Dimming: For LED drivers, output luminous flux is approximately linear with dimming signal 0–100% - Emergency battery duration: **t = C_battery / I_load** (minimum 3 hours per EN 1838) - Daylight autonomy: % of occupied hours where daylight alone meets task illuminance target --- ## 2. Control Philosophy ``` Lighting Zones and Priority: Zone Type | Control Mode | Min Lux | Timeout ─────────────────|─────────────────────────────|─────────|──────── Open plan office | Occupancy + Daylight harvest | 500 | 20 min Meeting room | Scene + Occupancy | 300 | 15 min Corridor/Lobby | Occupancy (dim to 20%) | 100 | 30 min Stairwell | Occupancy (dim to 30%) | 100 | 30 min External | Photocell schedule | 30 | Sunrise Carpark | Occupancy (dim to 10%) | 75 | 30 min Emergency | Maintained (always ON) | 10 | Never Scene Management: Scene 1 — Full (100%): Presentations, cleaning, maintenance Scene 2 — Daywork (70%): Normal occupied hours, balanced comfort Scene 3 — Meetings (50%): Presentation room, mixed daylight Scene 4 — Dawn/Dusk (30%): Early/late occupancy Scene 5 — Security (10%): Unoccupied security monitoring DALI Bus Architecture: BMS Controller → DALI Gateway → DALI Bus → Ballasts/LED Drivers Each bus supports 64 DALI addresses × N groups Groups 1–16 map to lighting zones Broadcast commands for fire alarm response ``` --- ## 3. Control Logic ```pascal { === INTELLIGENT LIGHTING AUTOMATION === } { DALI-2 / ASHRAE 90.1 / EN 1838 compliant lighting BMS } PROGRAM Lighting_Control CONSTANTS OCC_TIMEOUT_OFFICE_S = 1200 { s — 20 min occupancy timeout (office) } OCC_TIMEOUT_CORR_S = 1800 { s — 30 min (corridors) } OCC_TIMEOUT_MEET_S = 900 { s — 15 min (meeting rooms) } DAYLIGHT_HARVEST_MIN = 5.0 { % — minimum dim level during harvesting } TASK_LUX_OFFICE = 500 { lux — ISO 8995 office minimum } TASK_LUX_CORRIDOR = 100 { lux — corridor minimum } TASK_LUX_EMERGENCY = 10 { lux — EN 1838 emergency minimum } PHOTOCELL_ON_LUX = 200 { lux — outdoor level to switch on ext lights } PHOTOCELL_OFF_LUX = 500 { lux — outdoor level to switch off ext lights } MONTHLY_TEST_DAY = 1 { Day of month for automatic emergency test } MONTHLY_TEST_DUR_S = 60 { s — monthly 1-min emergency test } ANNUAL_TEST_DUR_S = 10800 { s — annual 3-h emergency discharge test } FIRE_OVERRIDE_LVL = 100.0 { % — full ON during fire alarm } VARIABLES { Inputs — DALI feedback and sensors } zone_office_occ : BOOL { Occupancy sensor — office zone } zone_corr_occ : BOOL { Occupancy sensor — corridor } zone_meet_occ : BOOL { Occupancy sensor — meeting room } photo_cell_lux : REAL { lux — exterior photocell } daylight_lux_z1 : REAL { lux — daylight sensor zone 1 (office) } fire_alarm_active : BOOL { TRUE when building fire alarm active } emrg_batt_ok : BOOL { Emergency battery healthy } dali_bus_fault : BOOL { DALI bus communication fault } day_of_month : INT { 1–31 from RTC } time_of_day_s : INT { seconds since midnight } annual_test_cmd : BOOL { Manual trigger for annual test } { Outputs — DALI dimming levels (0–100%) } dali_zone_office_pct : REAL { % dim — office zone } dali_zone_corr_pct : REAL { % dim — corridor zone } dali_zone_meet_pct : REAL { % dim — meeting room } dali_zone_ext_cmd : BOOL { ON/OFF — exterior lighting } dali_emrg_test_cmd : BOOL { Emergency test activation } alarm_dali_fault : BOOL alarm_emrg_batt_fail : BOOL alarm_monthly_test_due: BOOL alarm_lux_low : BOOL { Internals } occ_timer_office : TOF { OFF delay timer — office } occ_timer_corr : TOF { OFF delay timer — corridor } occ_timer_meet : TOF { OFF delay timer — meeting } emrg_test_timer : TON { Emergency test duration timer } emrg_test_active : BOOL harvest_correction_pct: REAL { % reduction from daylight harvesting } scheduled_on : BOOL { Time-of-day schedule } base_office_pct : REAL { % before harvest correction } monthly_test_done : BOOL { Track monthly test completed } BEGIN { === FIRE ALARM OVERRIDE — HIGHEST PRIORITY === } IF fire_alarm_active THEN dali_zone_office_pct := FIRE_OVERRIDE_LVL dali_zone_corr_pct := FIRE_OVERRIDE_LVL dali_zone_meet_pct := FIRE_OVERRIDE_LVL { Emergency maintained circuits are hardwired — not controlled here } RETURN { Skip all other logic } END_IF { --- DALI Bus Fault --- } alarm_dali_fault := dali_bus_fault alarm_emrg_batt_fail := NOT emrg_batt_ok { --- Time Schedule (08:00–19:00 weekdays) --- } { In production: use BACnet schedule objects or RTC with calendar } scheduled_on := time_of_day_s >= 28800 AND time_of_day_s <= 68400 { 08:00–19:00 } { === EMERGENCY LIGHTING TEST === } IF day_of_month = MONTHLY_TEST_DAY AND NOT monthly_test_done THEN alarm_monthly_test_due := TRUE emrg_test_timer(IN := TRUE, PT := T#60s) dali_emrg_test_cmd := TRUE IF emrg_test_timer.Q THEN dali_emrg_test_cmd := FALSE monthly_test_done := TRUE alarm_monthly_test_due := FALSE END_IF ELSIF day_of_month <> MONTHLY_TEST_DAY THEN monthly_test_done := FALSE { Reset for next month } END_IF IF annual_test_cmd THEN emrg_test_timer(IN := TRUE, PT := T#10800s) dali_emrg_test_cmd := TRUE IF emrg_test_timer.Q THEN dali_emrg_test_cmd := FALSE END_IF END_IF { === OFFICE ZONE — Occupancy + Daylight Harvesting === } occ_timer_office(IN := zone_office_occ, PT := T#1200s) IF zone_office_occ OR occ_timer_office.Q THEN { Occupancy active (or within timeout) — calculate dim level } { Daylight harvesting: reduce artificial light proportional to daylight } IF daylight_lux_z1 > 200.0 THEN { Harvest: reduce to keep total near 500 lux setpoint } harvest_correction_pct := MIN(90.0, (daylight_lux_z1 / TASK_LUX_OFFICE) * 70.0) ELSE harvest_correction_pct := 0.0 END_IF base_office_pct := 100.0 - harvest_correction_pct base_office_pct := MAX(DAYLIGHT_HARVEST_MIN, base_office_pct) dali_zone_office_pct := base_office_pct { Lux verification alarm } alarm_lux_low := daylight_lux_z1 + (base_office_pct / 100.0 * 600.0) < TASK_LUX_OFFICE * 0.8 ELSE { Unoccupied: dim to 0% (off) — corridors may stay at low level for safety } dali_zone_office_pct := 0.0 END_IF { === CORRIDOR ZONE — Occupancy with Background Dim === } occ_timer_corr(IN := zone_corr_occ, PT := T#1800s) IF zone_corr_occ THEN dali_zone_corr_pct := 70.0 { Full functional light } ELSIF occ_timer_corr.Q OR scheduled_on THEN dali_zone_corr_pct := 20.0 { Background dim — safety lighting } ELSE dali_zone_corr_pct := 10.0 { Night minimum — security } END_IF { === MEETING ROOM ZONE — Scene-Based + Occupancy === } occ_timer_meet(IN := zone_meet_occ, PT := T#900s) IF zone_meet_occ THEN dali_zone_meet_pct := 80.0 { Daywork scene } ELSIF occ_timer_meet.Q THEN dali_zone_meet_pct := 0.0 { Off after timeout } END_IF { === EXTERIOR LIGHTING — Photocell Control === } IF photo_cell_lux < PHOTOCELL_ON_LUX THEN dali_zone_ext_cmd := TRUE { Dusk — switch on } ELSIF photo_cell_lux > PHOTOCELL_OFF_LUX THEN dali_zone_ext_cmd := FALSE { Dawn — switch off } END_IF { Hysteresis prevents rapid switching at dusk/dawn } END_PROGRAM ``` --- ## 4. Tag List (ISA-5.1 / BACnet Naming) | Tag Name | BACnet Type | Description | EGU | Notes | |---|---|---|---|---| | `LT_Z01_OCC` | BI | Office zone occupancy | — | PIR sensor | | `LT_Z02_OCC` | BI | Corridor occupancy | — | PIR sensor | | `LT_Z03_OCC` | BI | Meeting room occupancy | — | PIR sensor | | `LT_EXT_PHOTO_PV` | AI | Exterior photocell | lux | Calibrated | | `LT_Z01_DL_PV` | AI | Office daylight sensor | lux | Near window | | `LT_FIRE_ALARM` | BI | Fire alarm input | — | From FA panel | | `LT_EMRG_BATT_OK` | BI | Emergency battery health | — | — | | `LT_DALI_BUS_FAULT` | BI | DALI bus fault | — | — | | `LT_Z01_DIM_CV` | AO | Office zone dim level | % | DALI ARC 0–254 | | `LT_Z02_DIM_CV` | AO | Corridor dim level | % | — | | `LT_Z03_DIM_CV` | AO | Meeting room dim level | % | — | | `LT_EXT_CMD` | BO | Exterior lights on/off | — | — | | `LT_EMRG_TEST_CMD` | BO | Emergency test trigger | — | Requires confirm | | `LT_MONTHLY_TEST_DUE` | BV | Monthly test alarm | — | — | --- ## 5. Alarm Configuration | Alarm | Priority | Condition | Action | |---|---|---|---| | `LT_FIRE_LT_ON_ALM` | Critical | Fire alarm → all zones 100% | Evacuation illumination | | `LT_EMRG_BATT_ALM` | Critical | Battery health failed | Inspect & replace; log test date | | `LT_DALI_FAULT_ALM` | High | DALI bus fault | Maintain last state; maintenance | | `LT_LUX_LOW_ALM` | Medium | Task lux < 80% target | Check dimming, clean luminaires | | `LT_MONTHLY_TEST_ALM` | Low | Monthly test due / not run | Schedule test; log result | --- ## 6. ASHRAE 90.1 LPD Compliance Tracking | Space Type | ASHRAE 90.1 LPD Limit | Installed LPD | Status | |---|---|---|---| | Open Office | 1.1 W/m² | ≤1.0 W/m² | Compliant | | Conference Room | 1.3 W/m² | ≤1.1 W/m² | Compliant | | Corridor / Transition | 0.7 W/m² | ≤0.5 W/m² | Compliant | | Parking Garage — Interior | 0.15 W/m² | ≤0.12 W/m² | Compliant | | Exterior — Grounds | 0.09 W/m² | — | Per design | *LPD = Watts of installed connected load / floor area. Must be re-verified after any fixture changes.* --- ## 7. Commissioning Checklist - [ ] Verify emergency maintained circuits are hardwired (test with BMS controller powered off) - [ ] Test fire alarm override: activate fire panel test mode; confirm all zones reach 100% - [ ] Calibrate photocell: verify switching at design lux thresholds (ON ≤200, OFF ≥500 lux) - [ ] Calibrate daylight sensors: compare reading to handheld lux meter (±15% tolerance) - [ ] Test occupancy sensor coverage — no dark corners in zone; no false triggers from HVAC - [ ] Verify DALI addressing: confirm each luminaire responds to its address only - [ ] Run monthly emergency test: confirm 60 s duration and result logged - [ ] Verify LPD calculation matches installed fixture schedule - [ ] Conduct darkness sweep at 02:00: confirm all non-emergency lights at designed night level - [ ] Log baseline energy consumption (lighting sub-meter daily kWh at 100% scene for benchmarking)

More like this

Rate, comment, and get full access

Members can download files, rate contributions, and discuss fixes with the engineers who posted them — free.

Join the library