oscat.lib > Bestehende Module / Existing Modules

Blind Shade / Warum UTC?

(1/1)

König777:
Hallo

folgende Frage tut sich bei mir auf. Warum wird im Blind Shade UTC verwendet. Die Beschattung erfolgt ja zwischen Sunrise und Sunset plus jeweiligen Offset.  Sunrise und Sunset im Typ Calendar sind doch an die Lokalzeit angepasst. Somit wird TOD aus UTC mit TOD aus LTC vergliechen. Liege ich da falsch?

Gruß König


ADS_0x1:
Hi König,

gerade zu Hause ausprobiert, du hast Recht. Habe nun folgende Zeile in meinem Baustein:


--- Code: ---IF UP AND DN AND enable AND (tonSunDelay.Q OR tofShadeDelayPos.Q)
AND cx.SUN_HOR > direction - angle_offset AND cx.SUN_HOR < direction + angle_offset
AND DT_TO_TOD(cx.LDT) > cx.SUN_RISE + sunrise_offset AND DT_TO_TOD(cx.LDT) < cx.SUN_SET - sunset_preset THEN
--- Ende Code ---

Habe gegoogelt, wann bei meinem Standort Sonnenaufgang ist und dort steht 5:52, genau das gleiche, wie im CX.SUN_RISE.

Viele Grüße!

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln