Adding logic schemes (v2.0.1-2.2.5)(legacy)
Logic schemes are used to specify automatic actions to events that occur in the system.
Logic schemes represent a set of conditions ( IF) and a set of actions that are executed ( THEN). Conditions can be combined using AND and OR. To carry out the actions it is possible to set the required action repeat timeout. If timeout equals 0 the action will be executed once.
The logic scheme will work only if the combination of conditions is true. Otherwise, the logic scheme will be disabled.
If the logic scheme is disabled the reverse actions of actions in THEN will not be executed. To execute reverse actions you have to set up a new logic scheme.
To add, edit, deactivate or remove a logic scheme, go to "Preferences" , select "Logic schemes" and click on the item "Add", "Edit", "Deactivate" or "Delete".
When editing or adding a logic scheme, specify the logic scheme name.
Create a set of conditions IF. Select the name of the element in "Element" and the state of the element in "State" as a condition for logic. To add condition use AND or OR in the field "Operator".
If a sensor with an analog output changes its state very rapidly ( e.g. vibration sensor), the state of the element can change from "Low" to "Alarm" and vice versa, without going through the state of "Warning", and "Normal".
Create a set of execute “Timeout" fields, and specify the time in seconds to create a pause before the element switches into the new state after the logic is triggered.
If, within the specified time-out logic is deactivated, the element will not change its state.
Save created logic.
Example of adding a logic scheme
For example, you have a telecommunication rack with servers and equipment. You need to activate fans inside a rack when the temperature reaches 36°C. If the temperature reaches 44°C you need to activate the second fan and notify the administrator via e-mail and SMS.
You have:
# | Device | Description |
---|---|---|
1 | "Temperature" | Temperature sensor installed inside a rack |
2 | "Relay 1" | Controls fan #1 |
3 | "Relay 2" | Controls fan #2 |
4 | "E-mail" | Notification via e-mail. Created by user |
5 | "SMS" | Notification via SMS. Created by user |
1. Edit the thresholds of "warning" and "alarm" levels for the temperature sensor. Set "warning level" to 36°C and "alarm level" to 44°C.
2. Create "E-mail" and "SMS" notifications. Follow the steps in the section Adding logic schemes (v2.0.1 - v2.2.5).
3. Go to "Preferences". Select "Logic schemes". Add 3 logic schemes as follows:
a. First logic scheme will turn on Fan#1 when the temperature reaches 36°C.
b. The second logic scheme will turn on Fan#2 when the temperature reaches 44°C. SMS and e-mail notifications will be sent.
c. Third logic will turn off Fan#1 and Fan#2 when the temperature falls into "normal" (the "Normal" level is between "low" and "warning" levels. Thus below 36°C in this example).