|
Depending on which Windows version is used, the procedure may vary slightly from the example shown here.
Switching task: You want to turn on the courtyard lighting at a company on each day at 5:00 p.m.
Output 1 on the Web-IO 10.40.22.101 controls a relay which powers the lighting. For this you can use the batch file lighton.bat.
To create a new task, first select Start >> Programs >> Accessories >> System Tools >> Scheduled Tasks.
Double-click on Add Scheduled Task

Click on Next

Click on Browse

and select the file lighton.bat

Select Daily and click on Next

Enter 5:00 p.m. as the time of day

and indicate under which user account you want to run the batch file

Then finish by clicking on Apply.
Turn off the courtyard lighting in the same manner by using the batch file lightoff.bat and setting the time for example to 8:00 a.m.
An alternative to the Windows task planner is provided by the tool Z-CRON, which is available as a free download from the Web site of IMU Hard- und Softwareservice. Commercial users may acquire a license for Z-CRON in exchange for a small fee.
Z-CRON allows direct invoking of the VBScript with the necessary parameters without having to go through a batch file. In addition, the tasks can be managed and created in much more organized fashion.
|