Difference between revisions of "PAB - RANGE"
Jump to navigation
Jump to search
m (Djestrab moved page PAB - RANGE Examples to PAB - RANGE) |
|||
Line 1: | Line 1: | ||
− | == Immediate evaluation == | + | True/False-based evaluation. If the monitored value is in specified interval for a time period defined in <code>timeHysteresis</code>, PAB evaluates to <code>TRUE</code>. Otherwise it evaluates to <code>FALSE</code>. |
+ | |||
+ | == Description== | ||
+ | * Source | ||
+ | * Parameters | ||
+ | * Outputs | ||
+ | |||
+ | == Structure == | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Variable | ||
+ | ! Value | ||
+ | ! Description | ||
+ | |- | ||
+ | | type | ||
+ | | RANGE | ||
+ | | PAB type | ||
+ | |- | ||
+ | | source | ||
+ | | OUTPUTS/'''x'''/(LOAD/CURRENT/POWER) <br> INPUTS/'''x'''/STATE | ||
+ | | The monitored variable. '''x''' indicates input / output number. | ||
+ | |- | ||
+ | | timeHysteresis | ||
+ | | int | ||
+ | | [s] Monitored value must be present in defined interval for amount of time defined here. | ||
+ | |||
+ | Eg: If the time hysteresis is equal to 5, monitored value must be within a defined interval for at least 5s. Only then it will be evaluated. | ||
+ | |- | ||
+ | | lowerBound | ||
+ | | int | ||
+ | | lower bound of the monitored value | ||
+ | |- | ||
+ | | upperBound | ||
+ | | int | ||
+ | | upper bound of the monitored value | ||
+ | |} | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | === Immediate evaluation === | ||
The condition evaluates to <code>TRUE</code> immediately as the current value appears between 100 and 200 mA | The condition evaluates to <code>TRUE</code> immediately as the current value appears between 100 and 200 mA | ||
<nowiki> | <nowiki> | ||
Line 10: | Line 49: | ||
}</nowiki> | }</nowiki> | ||
− | == Evaluation with delay == | + | === Evaluation with delay === |
The condition evaluates to <code>TRUE</code> when the current value is between 800 and 1000 mA for 5s. | The condition evaluates to <code>TRUE</code> when the current value is between 800 and 1000 mA for 5s. | ||
Revision as of 14:37, 16 November 2021
True/False-based evaluation. If the monitored value is in specified interval for a time period defined in timeHysteresis
, PAB evaluates to TRUE
. Otherwise it evaluates to FALSE
.
Description
- Source
- Parameters
- Outputs
Structure
Variable | Value | Description |
---|---|---|
type | RANGE | PAB type |
source | OUTPUTS/x/(LOAD/CURRENT/POWER) INPUTS/x/STATE |
The monitored variable. x indicates input / output number. |
timeHysteresis | int | [s] Monitored value must be present in defined interval for amount of time defined here.
Eg: If the time hysteresis is equal to 5, monitored value must be within a defined interval for at least 5s. Only then it will be evaluated. |
lowerBound | int | lower bound of the monitored value |
upperBound | int | upper bound of the monitored value |
Examples
Immediate evaluation
The condition evaluates to TRUE
immediately as the current value appears between 100 and 200 mA
{ "type": "RANGE", "source": "OUTPUTS/1/CURRENT", "lowerBound": 100, "upperBound": 200, "timeHysteresis": 0 }
Evaluation with delay
The condition evaluates to TRUE
when the current value is between 800 and 1000 mA for 5s.
{ "type": "RANGE", "source": "OUTPUTS/1/CURRENT", "lowerBound": 800, "upperBound": 1000, "timeHysteresis": 5 }