Thanskginving again

jimtech67

Member
Join Date
Jun 2002
Location
New Jersey
Posts
505
I have a project where I need inhibit certain things on holidays. I have figured all the needed holidays even taking into account if they fall on weekend and the day off is on Monday or Friday.

Thanksgiving U.S. has me stumped. It is the 4th Thursday of November, not the last like I thought ( if it was the last Thursday this would be easy). Without using counters, meaning counting the Thursdays in November, Can anyone point me in the right direct to determine when it is Thanksgiving ? I do not want to use counters because the PLC will tuned off quite often and if it is left off for more than a week in Nov I can’t count the Thursdays.

I know I could look up the dates for next 15 years (already did) but I did not do this for all the other holidays and I want to keep everything consistent

I am using an Allen Bradley 1200 Micro with real time clock


I posted agian beacuse goffed on the first
Jim
 
Just make sure that it's November, Thursday, and a date range between 22 and 28 inclusive.

Vetteboy
 
Last edited:
Vetteboy


Of course you are correct. Somehow I forgot that 7 x 4 = 28. I was no thinking that way I just counting from the end of the month. Thank for info


Jim

GO JETS
 

Similar Topics

When I connect to the site PLCS.NET is checking to see if the connection is secure. I click on a topic and it does it again. Click back and it...
Replies
20
Views
1,259
This old chestnut again... Our clocks (UK) went back an hour yesterday. Now the time displayed on the HMI is 1hr behind what it should be. In...
Replies
24
Views
2,011
My Lenovo P50 has served me well. it is still working, but I want to get something newer before I can no longer get a laptop w/ windows 10. I was...
Replies
23
Views
6,666
Wizards, I have been gone from my plant for a while and upon returning I have two, 480vac-24vdc power supplies on my desk with DEAD written on...
Replies
4
Views
2,267
Hey Folks. I'm having a little issue with a Kinetix350. Long story short. I have burned 2 2097-V34PR5-LM in the past few months on the same...
Replies
6
Views
2,761
Back
Top Bottom