Setting a "daylight savings" bit in Do-More PLC

AutomationTechBrian

Lifetime Supporting Member
Join Date
Jul 2013
Location
St. Cloud, MN
Posts
669
Finishing up my first project with a Do-More PLC to install tomorrow morning. I'm working on small details.... like automatically adjusting for daylight savings time. I'm thinking the problem through and wondering why nothing comes up in a search. It seems like this would have been encountered several times. Anyway.... I'm thinking about setting up a comparitor to trigger a bit.

Greater than: Second Sunday in March, 2:00, And lesser than: First Sunday in November..... set a bit.

Any nifty ways of doing this? Second Sunday in March.... all I can think of is $Now.day > 7. I'm curious if someone has a method I haven't thought of.
 
Nevermind, I figured it out.

The trick is to do it so the PLC knows whether or not it's in DST, even if it has been powered down during the change.

It boils down to one week in March, and one in November. Every other time is known, so you can easily do a greater-than or less-than for all the other months of the year, and the other weeks in March and November.

What you're left with is 7 comparison rungs for the unknown days for March 8-13th, and 7 for November 1-6. You utilize the $Now.DayOfWeek in those two weeks' comparisons, since they will only cycle through once.
 
Yes, I do have an issue. I wanted more than a bit set and reset. If the machine is off during the time shift, it gets screwed up. I put a little thought into it last night and wrote a little ladder program that will adjust to DST, regardless of when it is powered-up.
 
Yes, I do have an issue. I wanted more than a bit set and reset. If the machine is off during the time shift, it gets screwed up. I put a little thought into it last night and wrote a little ladder program that will adjust to DST, regardless of when it is powered-up.

There is also an example program to do that. It is the first example on the page. However, it is targeted at DL-series cpus.
 

Similar Topics

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
26
Views
311
SELECTED NEW FILE SELECTED PROCESSOR TYPE SELECTED I/O CONFIGURATIONS IM UNABLE TO CONFIGURE MY I/O’S. I HAVE A PAPER COPY OF A PROGRAM AND I...
Replies
0
Views
72
Does Rockwell still offer reset codes for old school Master Disk floppy's? In a bind and need to reset the activation disk soon and to be pointed...
Replies
9
Views
228
Hello, I am in possession of a WAGO PFC 200 750-8216 which I was successfully able to set up as a Modbus RTU Master to a slave device using...
Replies
0
Views
72
Hello. I am trying to use a Prosoft AN-X4 to improve the communications for a new panelview plus 7. This is going from a SLC-500 through DH+ to a...
Replies
9
Views
276
Back
Top Bottom