Daylight Saving flag
GSLogic
Posts: 562
You can set Daylight Saving in the Netlinx Java interface but you can NOT access it in Netlinx Studio.
Any plans to include the Daylight Saving logic flag in Netlinx Studio?
Any plans to include the Daylight Saving logic flag in Netlinx Studio?
0
Comments
You want to access a flag the shows you if DLS is on or off??
anyway... there is an include file sunrise and sunset that do some cool stuff using ASTRO_CLOCK as mentioned in the tech note 267 , but I couldn't get it run for some reason
for me, I calculate DLS start and end dates by myself in code, I can provide it for you if you would like.
CLKMGR_SET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)
Closer
I need the internal DS flag to have a variable associated with it so when it changes you see the value.
Think of it like the month, you can view it just by typing DATE_TO_MONTH.
I need a DAYLIGHT_SAVING command.
Fine... here are the last couple things I may know
CLKMGR_IS_DAYLIGHTSAVINGS_ON
Returns FALSE/0 or TRUE/1.
The default setting is FALSE/0.
CLKMGR_GET_DAYLIGHTSAVINGS_OFFSET (CONSTANT CLKMGR_TIMEOFFSET_STRUCT T)
I am out of clues.
This command returns the value of your DS setting - NOT if DS is being observed. I need to know if DS is being observed.
My fault, I think I never really explained myself clearly, but I do appreciate the ideas!
I see they added a couple new commands for the clock management.
Using CLKMGR_GET_START_DAYLIGHTSAVINGS_RULE and CLKMGR_GET_END_DAYLIGHTSAVINGS_RULE
I can calculate the status of DS. You did find the answer - THANKS!
It still would be nice to have a single command to know if DS is observed or not.