-
- 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、DO channel | ON、OFF | – | V | |
ON to OFF、OFF to ON、Change | V | – | ||
DI、DO Counter | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
Change | V | – | ||
AI、AO channel | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
Internal Register | ||||
CGI Command | ||||
Timer | Timeout、Not Timeout、Stop | – | 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 | = 、> 、< 、 ≥ 、 ≤ with AI, IR or a value |
– | V | |
Change | V | – | ||
AI channel | = 、> 、< 、 ≥ 、 ≤ with AI, IR or a value |
– | V | |
Internal Register | ||||
Modbus RTU Master Modbus TCP Master |
Coil Output | ON、OFF | – | V |
Discrete Input | ||||
Input Register | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
Holding Register | ||||
Microsoft Azure IBM Bluemix |
Connection Status | Offine、Online | – | V |
Subscribe Message | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
MQTT | Broker Connection Status | Offine、Online | – | V |
Subscribe Topic | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
Module Connection Status | Offine、Online | – | V | |
SD Card Status | Abnormal | – | V | |
3G Signal Strength | = 、> 、< 、 ≥ 、 ≤ with AI, AO, IR, Input Register, Holding Register or a value |
– | V | |
Rule Status | Enable、Disable | – | V |
-
- 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, Input Register, Holding Register or a value |
V | V | |
Internal Register | = 、 += 、 -=、*=、/=、%= with AI, AO, IR, Input Register, Holding Register or a value |
V | V | |
Timer | Start、Reset、Pause、Resume | V | – | |
Schedule | Enable、Disable | V | – | |
SMS Alarm | Send | V | – | |
CGI | ||||
SNMP Trap | ||||
LINE Notify | ||||
Facebook Messanger | ||||
P2P | DO channel | ON、OFF | V | V |
AO channel | = with AI, AO, IR or a value |
V | V | |
Internal Register | ||||
Modbus RTU Master Modbus TCP Master |
Coil Output | ON、OFF | V | V |
Holding Register | = 、 += 、 -= with AI, AO, IR, Input Register, Holding Register or a value |
V | V | |
Microsoft Azure IBM Bluemix |
Function Status | Enable、Disable | V | – |
Publish Message | Publish | V | – | |
MQTT | Broker Function Status | Enable、Disable | V | – |
Publish Message | Publish | V | – | |
Data Logger | Start、Stop、One-Time Log、FTP Upload | V | – | |
Reboot System | Reboot | V | – | |
Rule Status | Enable、Disable | V | – | |
Recipe | Execute | By Action |
Following is the UI and description for “One Time” Action and “Repeat” Action.
WISE-71xx, WISE-72xx, WISE-75xx, WISE-790x:
WISE-580x:
WISE-52xx:
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.