All lights off demo


This demo script is very useful to have loaded as a service. If a service is stopped before it is scripted to end, and lights are left on in the unit, the lights_off service can be run to turn off all the lights quickly.

Top

Script explanation

The script below waits one second, turns all the lights off, waits 2 seconds and then is complete.

ACTION MAIN
 
     WAIT(1)
 
     LIGHTS(ALL,OFF)

     SET(GPO6,0)            
     SET(GPO7,0)
     SET(GPO8,0)
 
     WAIT(2)
 
COMPLETE
Top

Script Download

To download the all_lights_off script as a .zs file (file type Zantiks software reads), choose the Save File As option in the right-click dialogue box. Clicking on the script name hyperlink will open a read-only version of the script.

Script download: all_lights_off.zs