WISE Tutorial
Functions
WISE IF-THEN-ELSE rule engine enables to set up various IF Conditions and THEN/ELSE Actions in response to the Condition statements. In addition to I/O channel data, WISE offers a variety of functions that meet different requirements of the projects, such as: Digital I/O counter function, Internal Register functions, Timer delay function, Scheduling function, remote message notification function(SMS, Email), Advanced P2P interactive function, Recipe group function, CGI command sending, function enables to start/stop Rule Status in real-time, Data Logger and Active I/O function.
Module |
|||||
I/O Function |
Built-in |
X-board FRnet |
Built-in |
XW-board I-7000 Modbus RTU Device |
|
Rule Configuration Website |
Yes |
Yes |
Yes |
Yes |
|
Modbus TCP Protocol |
Yes |
Yes |
Yes |
Yes |
|
36 IF-THEN-ELSE Logic Rule |
Yes |
Yes |
Yes |
Yes |
|
48 Internal Register |
Yes |
Yes |
Yes |
Yes |
|
12 Timer / 12 Email / 12 Recipe / 12 CGI Command |
Yes |
Yes |
Yes |
Yes |
|
8 P2P Controllers Support |
Yes |
Yes |
Yes |
- |
|
12 Schedule |
- |
Yes |
Yes |
Yes |
|
12 SMS Command |
- |
- |
- |
- |
Yes |
12 SMS Alarm |
- |
- |
Yes |
- |
Yes |
SNTP Time Synchonization |
- |
- |
- |
Yes |
|
Data Logger Support |
- |
- |
- |
Yes |
|
Active I/O |
- |
- |
- |
Yes |
IF-THEN-ELSE Rule Operation
IF Condition
The IF condition evaluation criteria on WISE can be divided into two types: event-trigger and periodic-trigger. The event-trigger is determined by status change and usually applies to DI or DI Counter status (ON to OFF, OFF to ON and Change). It will compare current signal with previous one, if it satisfies the IF Condition criteria, the evaluation result will be TRUE, otherwise it will be FALSE. For example, if the IF Condition criteria on a DI channel is set to be “ON to OFF”, the previous status is “ON” and current status is detected to be OFF, it matches the IF Condition evaluation criteria “ON to OFF”, therefore, the evaluation result will be “TRUE”. However, if the DI channel status remains to be “OFF” the status change will be “OFF to OFF”, in this case, the evaluation criteria is not matched, therefore the evaluation result will be “FALSE”. The IF Condition evaluation result will become “TRUE” once and only once if there is no further change to the status.
For the periodic-trigger, it is determined by value compare and usually it applies to DI/AI/IR value, DI Counter value, and Timer/Schedule /Rule Status, etc.. It will compare current value with the threshold value (by operators such as: =, >, <, >=, <=) to determine the evaluation to be TRUE or FALSE. Therefore if in the case the IF Condition is satisfied and the evaluation result becomes “TRUE”. If there is no further change to the value, the IF Condition evaluation result will continue to remain “TRUE”. The following table lists the IF Conditions and evaluation criteria for various functions.
IF Condition | Event-trigger | Periodic-trigger | ||
Function | Evaluation | |||
DI channel | ON、OFF | - | V | |
ON to OFF、OFF to ON、Change | V | - | ||
DI、DO Counter | = 、 > 、< 、 >= 、 <= | - | V | |
Change | V | - | ||
AI channel | = 、 > 、< 、 >= 、 <= with AI, IR or a value |
- | V | |
Internal Register | ||||
Timer | Timeout、Not Timeout | - | V | |
Schedule | In Range、Out of Range | - | V | |
SMS Command | 1、0 | - | V | |
P2P |
DI channel | ON、OFF | - | V |
ON to OFF、OFF to ON、Change | V | - | ||
DI、DO Counter | = 、 > 、< 、 >= 、 <= | - | V | |
Change | V | - | ||
AI channel | = 、 > 、< 、 >= 、 <= | - | V | |
Internal Register | ||||
Modbus RTU Master |
Coil Output | ON、OFF | - | V |
Discrete Input | ||||
Input Register | = 、 > 、< 、 >= 、 <= with a value |
- | V | |
Holding Register | ||||
Rule Status | Enable、Disable | - | V | |
.WISE-71xx doesn’t support Schedule function. .WISE-71xx, WISE-790x and WISE-4000 doesn’t support Modbus RTU Master function. .WISE-580x doesn’t support DO Counter function. .WISE-580x doesn’t support P2P function. .SMS Command function only for WISE-5801. |
THEN/ELSE Actions
WISE offers a variety of THEN / ELSE Actions in response to IF conditions. Actions can be "One Time" actions or "Repeat" actions. "One Time" action indicates that when IF Condition evaluation result is TRUE, the action will be executed once and only once. The action won’t be executed until the IF Condition evaluation result turns to be FALSE and then turns to be TRUE again. For "Repeat" action, once the IF Condition evaluation result turns to be TRUE, the action will be executed repeatedly until the IF Condition evaluation changes to be FALSE. The following table lists the action and execution mode for various functions.
THEN-ELSE Action | One Time | Repeat | ||
Function | Action | |||
DO channel | ON、OFF | V | V | |
Pulse Output | V | V | ||
DI、DO Counter | Reset | V | - | |
AO channel | = 、 += 、 -= with AI, AO, IR or a value |
V | V | |
Internal Register | ||||
Timer | Start、Reset | V | - | |
Schedule | Enable、Disable | V | - | |
SMS Alarm | Send | V | - | |
CGI | ||||
P2P |
DO channel | ON、OFF | V | V |
AO channel | Assign (=) local controller’s AI/AO channel value, IR value or user-defined value to remote controller’s AO or IR channel. | V | V | |
Internal Register | ||||
Modbus RTU Master |
Coil Output | ON、OFF | V | V |
Holding Register | = with a value |
V | V | |
Rule Status | Enable、Disable | V | - | |
Data Logger | Start、Stop、One-Time Log | V | - | |
.WISE-71xx doesn’t support Schedule function. .WISE-71xx, WISE-790x and WISE-4000 doesn’t support Modbus RTU Master function. .WISE-580x with I-7000 doesn’t support DO Pulse Output function. .WISE-580x doesn’t support DO Counter function. .WISE-580x doesn’t support P2P function. .SMS Alarm function only for WISE-4000 and WISE-5801. .Data Logger function only for WISE-580x. |
Following is the UI and description for "One Time" Action and "Repeat" Action.
One Time: |
When the IF Condition is TRUE, this Action will be executed once and only once. This Action will not be executed again until the IF Condition turns to be TRUE again. |
Repeat: |
When the IF Condition is TRUE, this Action will be executed repeatedly until the IF Condition turns to be FALSE. |
Step by Step
WISE offers a user-friendly and intuitive HMI interface that allow users to implement IF-THEN-ELSE control logic on controllers just a few clicks away; no programming is required. Basic configuration procedures are as follow: