Boiler evt finnish
This commit is contained in:
@@ -9,7 +9,6 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
// Boiler spezifische Properties
|
// Boiler spezifische Properties
|
||||||
$this->RegisterPropertyInteger("BoilerLeistungTeillast", 3000);
|
$this->RegisterPropertyInteger("BoilerLeistungTeillast", 3000);
|
||||||
$this->RegisterPropertyInteger("BoilerLeistungVolllast", 6000);
|
$this->RegisterPropertyInteger("BoilerLeistungVolllast", 6000);
|
||||||
$this->RegisterPropertyInteger("Boilertemperatur", 0);
|
|
||||||
$this->RegisterPropertyInteger("Boilerfuehler_PT1", 0);
|
$this->RegisterPropertyInteger("Boilerfuehler_PT1", 0);
|
||||||
$this->RegisterPropertyInteger("Kontakt_Teillast", 0);
|
$this->RegisterPropertyInteger("Kontakt_Teillast", 0);
|
||||||
$this->RegisterPropertyInteger("Kontakt_Volllast", 0);
|
$this->RegisterPropertyInteger("Kontakt_Volllast", 0);
|
||||||
@@ -20,7 +19,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
$this->RegisterVariableInteger("Maximaltemperatur","Maximaltemperatur","",60);
|
$this->RegisterVariableInteger("Maximaltemperatur","Maximaltemperatur","",60);
|
||||||
$this->RegisterVariableInteger("Legionellentemperatur","Legionellentemperatur","",65);
|
$this->RegisterVariableInteger("Legionellentemperatur","Legionellentemperatur","",65);
|
||||||
$this->RegisterVariableInteger("LegioCounter", "LegioCounter", "", 0);
|
$this->RegisterVariableInteger("LegioCounter", "LegioCounter", "", 0);
|
||||||
$this->RegisterVariableInteger("Boilerfuehler_PT1_Filtered", "Boilerfuehler_PT1_Filtered", "", 0);
|
$this->RegisterVariableInteger("Boilertemperatur", "Boilertemperatur", "", 0);
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
||||||
@@ -97,15 +96,15 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
{
|
{
|
||||||
$LegioCounter = $this->GetValue("LegioCounter");
|
$LegioCounter = $this->GetValue("LegioCounter");
|
||||||
|
|
||||||
$boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur"));
|
|
||||||
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
||||||
$boilerPT1Filtered = $this->GetValue("Boilerfuehler_PT1_Filtered");
|
$boilerPT1Filtered = $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 = $boilerPT1Filtered + $alpha * ($boilerPT1 - $boilerPT1Filtered);
|
||||||
$this->SetValue("Boilerfuehler_PT1_Filtered", $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.245",
|
"version": "0.246",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user