This is an old revision of the document!
Rules allow each device on the CFLink network to perform actions based on string matching of outgoing data on the CFLink bus.
For example, you can create a rule that when a specific dry contact on a SW16 is closed, a custom macro is triggered.
Rules are stored on the device that sends the commands. So if you want to perform a rule when a SW16 dry contact closes, you store the rule on the SW16.
If you wanted to perform a rule when data arrived on a TCP socket in the LAN Bridge, you would store the rule on the LAN Bridge.
If you wanted to perform a rule when the resistance input of a MOD-IO8 changed, you would store the rule in the unit housing the module (DIN-MOD4 for example).
A rule is defined with a name, search string and a macro to trigger.
*
(asterisk) means match any character zero or more times, until the next defined character in the search string is found, or until the end of the message..
(period) means match any character a single time.A Macro is defined with a name and a series of actions and delays.
For details on the CFLink protocol used to create and delete rules, please see the Rules Protocol wiki entry.