Benutzer-Werkzeuge

Webseiten-Werkzeuge


the_dispatch-mechanism

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
the_dispatch-mechanism [23.02.2017 10:48]
fka
the_dispatch-mechanism [08.10.2020 16:38] (aktuell)
oni
Zeile 78: Zeile 78:
  
 "X" Within the section formula() this represents the source data point value\\ "X" Within the section formula() this represents the source data point value\\
-"$(<Routing address>[.<type of data point>] <driver name> <address of data point>)" represents the target data point.+"$(<Routing address>[.<type of data point>] <driver name> <address of data point>)" represents the target data point
  
   # Source value / 2.55 -> Target value    # Source value / 2.55 -> Target value 
Zeile 85: Zeile 85:
     value = formula(X/2.55)     value = formula(X/2.55)
  
-  # Source value + value of an other data point-> Target value +  # Source value + value of an other data point-> Target value 
 +  # The formula is only calculated if the source value (holding 2386) changes.
   [80.X mod 1 holding 2386]   [80.X mod 1 holding 2386]
     target = 940.Y bac 96099.AI 32001     target = 940.Y bac 96099.AI 32001
     value = formula(X+$(80.X mod 1 holding 1000))     value = formula(X+$(80.X mod 1 holding 1000))
 +    
 +  # The formula is calculated when holding 1000 is changed. 
 +  [80.X mod 1 holding 1000]
 +    target = 940.Y bac 96099.AI 32001
 +    value = formula($(80.X mod 1 holding 2386)+X)
 +    
 +Via the dispatch mechanism, the individual status flags of the data points can also be queried and assigned to a data point. In the example the flag "valid" and the flag "fault" of a LON data point are mapped to a binary BACnet data point. 
 +
 +  [10 lon object 2]
 +   value = formula(if($(10 lon object 2).valid;1;0))
 +   target = 940 bac local.BI 2
 +
 +  [10 lon object 2]
 +   value = formula(if($(X).fault;1;0))
 +   target = 940 bac local.BI 3  
  
 Within the section formula() following operators can be used: Within the section formula() following operators can be used:
Zeile 155: Zeile 171:
 |max3   |TertiaerMax   |max3(5;6;7) → 7  | |max3   |TertiaerMax   |max3(5;6;7) → 7  |
 |min3   |TertiaerMin   |min3(5;6;7) → 5  | |min3   |TertiaerMin   |min3(5;6;7) → 5  |
 +
 +<sub>[[https://www.mbs-solutions.de/impressum|Imprint/Impressum]]
 +[[https://www.mbs-solutions.de/disclaimer|Disclaimer]]
 +[[https://www.mbs-solutions.de/datenschutzerklaerung|DSGVO/Privacy Policy]]</sub>
the_dispatch-mechanism.1487846898.txt.gz · Zuletzt geändert: 23.02.2017 10:48 von fka