Delay= Command
Delay= lets you set the default delay used by a task.
This can save you time by not having to specify a value with your Delay() commands but the real benefit is that you can edit them quickly from a single place.
This change is only for the task it is in and lasts until the next time you change the default area value.
Syntax
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 default delay is 1 second.
Can be any value from 0.02-1200.
Always put a delay of at least 100ms between your DyNet message to avoid overloading the network or the message buffer of devices. |
Example
Will set all Delay() with an empty brackets to use a delay of 3.5 unless explicitly defined in the function call.
Will send the following when called “Preset 2-Area 3” then “Delay for 3.5 seconds” then “Preset 3-Area 9” then “Delay for 1 second” then “Preset 5-Area 3” then “Delay for 3.5 seconds” then “Preset 3-Area 9”
{
Delay=3.5 //Set default delay to 3.5s
Preset(P=2,A=3)
Delay() //Delay for default time
Preset(P=3,A=9)
Delay(1) //Delay for specified time of 1s
Preset(P=5,A=3)
Delay() //Delay for default time
Preset(P=3,A=9)
}