Difference between revisions of "PAB"

From wiki.netio-products.com
Jump to navigation Jump to search
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The PAB (Power Analyzing Block) define sets of conditions for measured variables (current, voltage, S0 pulses etc.). Various rules can be set based on these conditions. Rules can perform actions such as sending alarm to the Cloud service, restarting outputs, etc.
+
The PAB (Power Analyzing Block) is a function with periodically evaluated sets of conditions for measured variables (current [mA], voltage, S0 pulses etc.). Based on each PAB state one or several RULEs can be executed. Each [https://wiki.netio-products.com/index.php?title=Rules '''Rule'''] can perform several actions (Set Output, Short Off (restart) output, Toggle output or send Alarm state to the NETIO Cloud service. Based on this Alarm state can NETIO Cloud send email to defined recipient.
The PAB condition output is also available for use in selected protocols.
+
All PABs are listed in the JSON protocol wit their current states. It can be used by 3rd party software.  
  
 
== Types ==
 
== Types ==
 
There are two types of PAB available:
 
There are two types of PAB available:
  
# '''RANGE''' - Evaluation YES/NO (TRUE/FALSE)
+
# '''RANGE''' - Function state = '''YES/NO''' (TRUE/FALSE) - For example: O1 current <200 mA - 1000 mA>.
# '''ZONE''' - Evaluation using specified intervals
+
# '''ZONE''' - Function state = '''One of predefined value intervals''' - For example: O1 current = 1 (0 = <0-100mA>, 1 = <100-500mA>, 2 = <501-16000mA>)
  
Each type uses specific variables and is described in detail below. 
 
  
 
PABs can work with the specified quantities:
 
PABs can work with the specified quantities:
 
* Current: OUTPUTS/1/CURRENT '''[mA]'''
 
* Current: OUTPUTS/1/CURRENT '''[mA]'''
* Load: OUTPUTS/8/LOAD '''[W]'''
+
* Load: OUTPUTS/2/LOAD '''[W]'''
 
* Energy: OUTPUTS/4/POWER '''[Wh]'''
 
* Energy: OUTPUTS/4/POWER '''[Wh]'''
* Output no. 1 state: OUTPUTS/1/STATE '''[int 0/1]'''
+
* Output No. 8 state: OUTPUTS/8/STATE '''[int 0/1]'''
 
General structure for defining a variable is: <INPUT/OUTPUT>/ID/<monitored variable>
 
General structure for defining a variable is: <INPUT/OUTPUT>/ID/<monitored variable>
 
== PAB - RANGE ==
 
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>.
 
 
=== 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
 
|}
 
 
== PAB - ZONES ==
 
Zone-based evaluation. 1 or more zones can be set. Zones are divided using the values specified in the <code>thresholds</code> variable.
 
Monitored value must be present in defined interval for amount of time defined here. The PAB condition is evaluated as a number (integer) equal to the interval order.
 
 
Eg. At two specified intervals, the PAB value can be 0, 1, or 2.
 
 
=== Structure ===
 
{| class="wikitable"
 
|-
 
! Variable
 
! Value
 
! Description
 
|-
 
| type
 
| ZONE
 
| 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.
 
|-
 
| thresholds
 
| list[int]
 
| lower-bounds of individual zones intervals
 
|}
 

Revision as of 11:40, 18 November 2021

The PAB (Power Analyzing Block) is a function with periodically evaluated sets of conditions for measured variables (current [mA], voltage, S0 pulses etc.). Based on each PAB state one or several RULEs can be executed. Each Rule can perform several actions (Set Output, Short Off (restart) output, Toggle output or send Alarm state to the NETIO Cloud service. Based on this Alarm state can NETIO Cloud send email to defined recipient. All PABs are listed in the JSON protocol wit their current states. It can be used by 3rd party software.

Types

There are two types of PAB available:

  1. RANGE - Function state = YES/NO (TRUE/FALSE) - For example: O1 current <200 mA - 1000 mA>.
  2. ZONE - Function state = One of predefined value intervals - For example: O1 current = 1 (0 = <0-100mA>, 1 = <100-500mA>, 2 = <501-16000mA>)


PABs can work with the specified quantities:

  • Current: OUTPUTS/1/CURRENT [mA]
  • Load: OUTPUTS/2/LOAD [W]
  • Energy: OUTPUTS/4/POWER [Wh]
  • Output No. 8 state: OUTPUTS/8/STATE [int 0/1]

General structure for defining a variable is: <INPUT/OUTPUT>/ID/<monitored variable>