ok
This commit is contained in:
@@ -98,12 +98,12 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
|
|
||||||
|
|
||||||
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
||||||
$boilerPT1Filtered = $this->GetValue("Boilertemperatur");
|
$boilerTemp = $this->GetValue("Boilertemperatur");
|
||||||
// PT
|
// PT
|
||||||
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
||||||
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
||||||
$alpha = $delta_t / ($time_constant + $delta_t);
|
$alpha = $delta_t / ($time_constant + $delta_t);
|
||||||
$newBoilerTemp = $boilerPT1Filtered + $alpha * ($boilerPT1 - $boilerPT1Filtered);
|
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
|
||||||
$this->SetValue("Boilertemperatur", $newBoilerTemp);
|
$this->SetValue("Boilertemperatur", $newBoilerTemp);
|
||||||
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));
|
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.246",
|
"version": "0.247",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user