PDA

View Full Version : I created a program and gave it a housecode and unitcode. When I press that button on a control panel the program starts - but only when I press it in the on direction. Nothing happens when I push it in the off direction. Why?


HCA Admin
Sep 01, 2009, 01:22 PM
If you provide a housecode and unitcode for a program, it starts running when that housecode and unitcode is received by HCA. As you noticed, control panels have buttons that can be pressed in the ON or OFF position. When you first create a program, the wizard has set up the program to only start when an ON command for its housecode and unitcode is received.

You can select the program and bring up its properties to change this. In the Advanced tab of a program's properties is an option to start the program when an ON command is received, and another option to start the program when an OFF command is received. You can check one or both of these options.

To create a program that performs different actions based upon an ON or OFF, you can use the Test element. This is one of the conditions it can test for.

It's important to remember that sending an ON command starts a program. Sending an OFF command, depending upon the program's properties, either does nothing or also starts the program. Sending an OFF doesn't stop an already running program.