Zeitkonstamte hinzugefügt
This commit is contained in:
@@ -9,6 +9,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
||||
// Boiler spezifische Properties
|
||||
$this->RegisterPropertyInteger("BoilerLeistungTeillast", 3000);
|
||||
$this->RegisterPropertyInteger("BoilerLeistungVolllast", 6000);
|
||||
$this->RegisterPropertyInteger("ZeitKonstante", 120);
|
||||
$this->RegisterPropertyInteger("Boilerfuehler_PT1", 0);
|
||||
$this->RegisterPropertyInteger("Kontakt_Teillast", 0);
|
||||
$this->RegisterPropertyInteger("Kontakt_Volllast", 0);
|
||||
@@ -51,7 +52,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
||||
|
||||
public function RequestAction($Ident, $Value)
|
||||
{
|
||||
IPS_LogMessage("Boiler Debug", "RequestAction triggered: $Ident = $Value");
|
||||
|
||||
|
||||
switch ($Ident) {
|
||||
|
||||
@@ -130,7 +131,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
||||
}
|
||||
|
||||
// PT
|
||||
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
||||
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
|
||||
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
||||
$alpha = $delta_t / ($time_constant + $delta_t);
|
||||
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
|
||||
|
||||
Reference in New Issue
Block a user