oder neu:
weekend = dayofweek()==SAMSTAG or dayofweek()==SONNTAG
zirkulationsanforderung=0b01
if htime(06,20,00) and !weekend then zirkulationsanforderung=1b01 endif
if htime(07,30,00) and dayofweek()==SAMSTAG then zirkulationsanforderung=1b01 endif
if htime(08,15,00) and dayofweek()==SONNTAG then zirkulationsanforderung=1b01 endif
if htime(18,00,00) then write zirkulationsanforderung=1b01 endif
if after (zirkulationsanforderung,3600000u64) then zirkulationsanforderung=0b01 endif
if cycle(20,0) and zirkulationsanforderung then write ("Zirkulationspumpe-4/0/9",ein) endif
if after ("Zirkulationspumpe-4/0/9,120000u64) then write("Zirkulationspumpe-4/0/9",AUS) endif
weekend = dayofweek()==SAMSTAG or dayofweek()==SONNTAG
zirkulationsanforderung=0b01
if htime(06,20,00) and !weekend then zirkulationsanforderung=1b01 endif
if htime(07,30,00) and dayofweek()==SAMSTAG then zirkulationsanforderung=1b01 endif
if htime(08,15,00) and dayofweek()==SONNTAG then zirkulationsanforderung=1b01 endif
if htime(18,00,00) then write zirkulationsanforderung=1b01 endif
if after (zirkulationsanforderung,3600000u64) then zirkulationsanforderung=0b01 endif
if cycle(20,0) and zirkulationsanforderung then write ("Zirkulationspumpe-4/0/9",ein) endif
if after ("Zirkulationspumpe-4/0/9,120000u64) then write("Zirkulationspumpe-4/0/9",AUS) endif
Kommentar