News:

  • June 10, 2026, 09:04:26 AM

Login with username, password and session length

Author Topic: Time change didn't happen on the forums (or my Do-more either).  (Read 19627 times)

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Time change didn't happen on the forums (or my Do-more either).
« on: November 14, 2016, 07:01:50 PM »
I just noticed my forum time was an hour ahead. I have the preference for automatic, my local PC clock is right, but I had to set it manually to -1 hr to get it to display CST.

Also, is there a configuration switch to enable DST change automatically on the Do-more, or is it up to me to set/reset the Summertime bit?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #1 on: November 14, 2016, 10:10:35 PM »
Not sure about the forum.

Controller is manual. PLCs stay in service for a long time and the laws here and abroad are subject to change.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #2 on: November 15, 2016, 08:43:40 PM »
Controller is manual. PLCs stay in service for a long time and the laws here and abroad are subject to change.

I thought that might be the case. I'm sure the time change is quite a hassle for all the data collectors, never mind night shift concerns.

But may I request some consideration be given at some point to an instruction box that we can configure easily? Date and time to change and internal logic to prevent getting stuck in the fall DST to non DST changeover. I personally rarely need it, but occasionally it comes up.

(One of our guys had a glitch on a Do-more data collection PLC recently due to the time change.) Thanks.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #3 on: November 15, 2016, 11:55:26 PM »
I like that approach. Instruction allows us to do the work but keeps us from being responsible for when.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Dean

  • Sr. Member
  • ****
  • Posts: 73
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #4 on: November 16, 2016, 03:59:31 PM »
Bernie taught me this one.
10 Lather
20 Rinse
30 GOTO 10

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #5 on: November 16, 2016, 04:09:34 PM »
Bernie taught me this one.

Bernie is a sharp guy.  Here is the English prose of Bernie's straight forward logic (from https://www.nist.gov/pml/time-and-frequency-division/popular-links/daylight-saving-time-dst):

Begins at 2:00 a.m. on the second Sunday of March and
Ends at 2:00 a.m. on the first Sunday of November

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #6 on: November 16, 2016, 05:25:54 PM »
I like the simplicity of that code snippet, but it won't work if the PLC is not in run mode at the transition minute.

Please correct me if I am wrong!

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #7 on: November 16, 2016, 05:37:46 PM »
I like the simplicity of that code snippet, but it won't work if the PLC is not in run mode at the transition minute.

Please correct me if I am wrong!

You are correct.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #8 on: November 16, 2016, 07:08:20 PM »
You'd need to range check it continuously.   For example, what I do when I want to do something once a day, let's say presumably at midnight, is to record the last day-of-month upon which the task was performed.  If current date is different, do the thing and update the last date register.  That way, the PLC being off at midnight doesn't skip the task (though it still only gets done once if the PLC is off for a week, say)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #9 on: November 16, 2016, 07:22:27 PM »
I believe that this expansion should pick up most possibilities of time that the system is turned on. I'm sure some compression could be done with creative use of math for the tests of other days of the week possibly following the Sunday change.
An output is a PLC's way of getting its inputs to change.

Dean

  • Sr. Member
  • ****
  • Posts: 73
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #10 on: November 17, 2016, 11:46:53 AM »
Hadn't thought about that possibility. Just added a pair of buttons to the password protected maintenance screen labeled DST, and ST. Off to put a note in the SOP revision file, and tell the maintenance guys.  :-[
10 Lather
20 Rinse
30 GOTO 10

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Time change didn't happen on the forums (or my Do-more either).
« Reply #11 on: June 26, 2018, 09:02:13 PM »
I believe that this expansion should pick up most possibilities of time that the system is turned on. I'm sure some compression could be done with creative use of math for the tests of other days of the week possibly following the Sunday change.

Old I know, but I decided to "steal" your code and noticed that the "fall back" month is October rather than November.
I changed:
 $Now.Month<=9 to <=10 in Rung 1
 $Now.Month=10 to =11 in Rung 2
 $Now.Month>10 to >11 in Rung 2

Thanks for the code Bernie!