Fade= Command
Fade= lets you set the default fade time used by functions within a task so you can send several messages all with the same fade time.
This change is only for the task it is in and lasts until the next time you change the default fade time value.
It affects the functions Preset() ChannelLevel(), ResetPreset(), Panic(), and UnPanic(). However, each of those commands has their own range of valid fade times.
Using the Fade= command to change the default fade time of functions saves some typing but the main benefit is allowing you edit the fade time parameter in multiple functions from a single location.
Syntax
Fade=x Where x is the desired fade time in seconds.
Default fade time is 0.2s if not modified by this command.
Minimum value is 0s.
Maximum value depends on which functions follow it in that task.
-
Preset() - 1310s
-
ChannelLevel() - 15300s
-
Panic() - 1310s
-
UnPanic() - 1310s
-
ResetPreset() - 1310s
Can be set more than once within the task, i.e. can be set for the first 6 messages and then set for the next 6 messages in a 12-message-task.
The task editor in System Builder has a bug and will apply any default modification commands that are skipped over by a BRA command. Essentially only the last default modification will apply. |
Examples
Example 1
Will set all Commands fade speed to use 7 seconds as the fade unless explicitly defined in the function call.
Will send the following when called “Preset 2-Area 4 Fade of 4” then “Preset 3-Area 9 Fade of 4” then “Delay for 1 second” then “Preset 5-Area 3 Fade of 2”
{
Fade=7 //Set default fade time to 7seconds
Preset(P=2,A=4) //Recall preset 4 for area 2 with a default fade time
Preset(P=3,A=9) //Recall preset 3 for area 9 with a default fade time
Delay(1) //Delay 1 second
Preset(P=5,F=2) //Recall preset 4 for area 2 with a fade time of 2 seconds
}
Example 2
Turns off the lights in a house.
{
Fade=2 //Set default fade time to 2 seconds for dimmable zones
Preset=4 //Set default preset to 4 (Off)
Delay=.1 //Set a default delay of 100ms
Preset(A=4) //Turn off the living room lights
Delay()
Preset(A=9) //Turn off the dining room lights
Delay()
Preset(A=5) //Turn off the kitchen lights
Delay()
Preset(A=11) //Turn off the bedroom lights
Delay()
Fade=0 //Set default fade time to 0 seconds for switched zones
Preset(A=22) //Turn off the Garage
Delay()
Preset(A=3) //Turn off the Exterior lights
Delay()
Preset(A=14) //Turn off the Fountain pump
Delay()
Preset(A=8) //Turn off the Closet light
}