Lights off demo MWP


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

Top

Script explanation

The script below waits turns all the lights off (overhead and the screen in the MWP_sc), waits 2 seconds and then is complete.

INCLUDE zsys 
ACTION MAIN 
 #OFF 
 LIGHTS(ALL,OFF)
 
 SET(GPO6,0) 
 SET(GPO7,0) 
 SET(GPO8,0) 
 WAIT(2) 
COMPLETE
Top

Script Download

To download the lights_off_MWP demo 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: lights_off_MWP.zs