The lights in the foyer are switched on from any of the 3 different entrances. Three presence sensors are mounted to achieve this. One sensor at each entrance looks down the passage and is connected to inputs of a micro PLC. Sensors are NC and open their contacts for 100ms when movement is detected.
A 2-minute time window is allowed during which the foyer lights must be kept on.
If, within the current 2 min window that lights are on, someone else entering the foyer from another entrance should also experience the lights staying on for 2 minutes. Thus, from the perspective of any person walking in from any entrance, the foyer lights should be on for 2 minutes.
The cleaners are due to clean the portal every night at 19h00.
The night-shift cleaners complain that 2 minutes is not enough to clean the foyer. The facilities manager gives you the go-ahead to alter only the logic. Give a solution that will accommodate the cleaners for 15 minutes.
Solution:
This video is sped up on purpose at different times.