TOF · Off-delay timer
Set up a TOF in the simulator to keep a light on for three seconds after the motion sensor stops detecting movement.
- 0:00Program an off-delay · Rotate your phone · Watch in landscape
- 0:12Keep a light on after motion stops
- 0:24Motion → TOF Light_Delay · Light_Delay.DN → OTE Light
- 0:37Timers lesson
- 0:47Double-click the new rung
- 0:50Click XIC
- 0:53Enter Motion
- 0:56Open Timer / Counter
- 0:59Click TOF
- 1:02Timer = Light_Delay
- 1:05Preset = 3000 · Accum = 0
- 1:09Accept saves the rung
- 1:14Add and open the next rung
- 1:18XIC Light_Delay.DN
- 1:23Insert OTE
- 1:26Set the coil tag to Light
- 1:29Accept saves the rung
- 1:32Click Run
- 1:35Open Simulator
- 1:39Use Motion as an SW input
- 1:43Motion = 1 · Light turns on
- 1:48ACC = 0 · EN = 1 · TT = 0 · DN = 1
- 1:53Turn Motion off · Light stays on
- 1:59ACC increases · TT = 1 · DN = 1
- 2:05ACC = 3000 · Light turns off
- 2:14Try the three-second delay