weiterer teil
This commit is contained in:
@@ -169,6 +169,35 @@ class WP_Steurung extends IPSModule {
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
}
|
||||
|
||||
$newState = $this->GetValue("Zustand_WP");
|
||||
|
||||
if($newState == 0){
|
||||
|
||||
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
|
||||
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
|
||||
|
||||
}elseif($newState == 1){
|
||||
|
||||
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
|
||||
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
|
||||
|
||||
}elseif($newState == 2){
|
||||
|
||||
SetValue($this->ReadPropertyInteger("Sperrkontakt"), true);
|
||||
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
|
||||
|
||||
}elseif($newState == 3){
|
||||
|
||||
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
|
||||
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), true);
|
||||
|
||||
}else{
|
||||
|
||||
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
|
||||
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
|
||||
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
$newCount = $this->GetValue("WP_Laufzeit_Zahler");
|
||||
|
||||
Reference in New Issue
Block a user