Off() - The Off Function
This function will send an Off command to an area. (OpCode 0x04).
This command will affect all button stations, and load controller outputs for that area.
Although the Off command turns off the lights and updates indicators and OneTouch toggle state it doesn’t actually change the preset. This means that sensors and BACnet points will not change preset state. Also, the ResetPreset() command will still return it to the previous levels and a request current preset command (OpCode 0x63) will return the preset it was in previous to the Off command.
Syntax
Off(A=x,J=x)
-
"A" is the area number (0-255) - Default of 1
-
"F" is the fade time in seconds (0-1310)- Default is 0.2 seconds
-
"J" is the join level (0x00-0xFF) - Default is 0xFF
Any parameter that is omitted will be replaced with the default value.
You can only use fixed values, decimal or hex, in functions. You may not reference tilde memory, persistent memory locations, or ports. However, you can use constants as they are just place holders for fixed values.
| You can use the commands Area= Command, Fade= Command, and Join= Command to modify the default value for parameters in this function when you do not specify them. |
Example
Simple use of the Off() function. Join is omitted so the default value is used.
{
Name="Blink Warning"//Blinks the lights off twice.
Off(A=11,F=1) //Turn the lights off without changing the preset.
Delay(.1)
ResetPreset(A=11,F=1) //Return the lights to the active preset.
Delay(.1)
Off(A=11,F=1) //Turn the lights off without changing the preset.
Delay(.1)
ResetPreset(A=11,F=1) //Return the lights to the active preset.
}