Skip to main content
Skip table of contents

Controlling outdoor lighting using time schedules

Use case

Your customer wants to automatically control the outdoor lighting. 

  • In the morning: 
    • Activate the lighting when it is still dark, but only after 7:00. This means that the lighting is activated when the sun rises after 7:00.
    • Deactivate the lighting at sunrise, if it was activated.
  • In the evening: 
    • Activate the lighting when it becomes dark, but only before 19:00. This means that the lighting is activated when the sun sets before 19:00.
    • Deactivate the lighting at 19:00, if it was activated.

For this example, there are 2 solutions. Both are described below:

  • a solution with 2 time schedules
  • a solution with 6 time schedules



Procedure - using 2 time schedules

Creating the control and the time schedules
  1. Create a lamp (LAMP1).
  2. Create a daily time schedule from sunrise until sunset (TIME1).
  3. Create a daily time schedule from 7:00 until 19:00 (TIME2).

Creating the condition

Create a condition (COND1) that uses the time schedules to control the outdoor lighting. From sunset until sunrise (TIME1 = false) and from 7:00 until 19:00 (TIME2 = true) the outdoor lighting is activated. Use the following logic:

  • IF (TIME1: On/off = false) and (TIME2: On/off = true)
  • THEN  LAMP1: Value = on
  • ELSE  LAMP1: Value = off

Filling the cabinet and addressing the device
Fill the cabinet with ...and address the following device ...
a switching module (3X) 2U (MOD1)

lamp LAMP1.



Example

Click here to download the programming example (nhc2 file).

Procedure - using 6 time schedules

Creating the control and the time schedules
  1. Create a lamp (LAMP1).
  2. Create the following time schedules:
    • a daily time schedule before sunrise (TIME1)
    • a daily time schedule after 7:00 (TIME2)
    • a daily time schedule at sunrise (TIME3)
    • a daily time schedule before 19:00 (TIME4)
    • a daily time schedule after sunset (TIME5)
    • a daily time schedule at 19:00 (TIME6)

Creating the conditions
  1. Create a condition (COND1) that activates the lighting before sunrise and after 7:00. Use the following logic:
    • IF (TIME1: On/off = true) and (TIME2: On/off = true)
    • THEN LAMP1: Value = on
    • ELSE leave empty
  2. Create a condition (COND2) that deactivates the lighting at sunrise. Use the following logic:
    • IF ( TIME3: On/off = true) 
    • THEN LAMP1: Value = off
    • ELSE leave empty
  3. Create a condition (COND3) that activates the lighting before 19:00 and after sunset. Use the following logic:
    • IF (TIME4: On/off = true) and (TIME5: On/off = true)
    • THEN LAMP1: Value = on
    • ELSE leave empty
  4. Create a condition (COND4) that deactivates the lighting at 19:00. Use the following logic:
    • IF (TIME6: On/off = true)
    • THEN LAMP1: Value = off
    • ELSE leave empty

Filling the cabinet and addressing the device
Fill the cabinet with ...and address the following device ...
a switching module (3X) 2U (MOD1)

lamp LAMP1.



Example

Click here to download the programming example (nhc2 file).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.