How to calculate the day of the week?

daylight savings time

I have mentioned this in my previous posts on this subject.
You need to account for the daylight savings time since you are
allerting the operator each day at the same time.
You can develop a routine in the PLC that automatically resets the time during the equinox.
 
Steve Meisel said:
Remeber Daylight Savings time is at 2:00am the first Sunday in April and the last Sunday in October.

Except in Ozz where it's at 2:00am the last Sunday in October and the first Sunday in April... :D

beerchug

-Eric
 
Thanks for all the replies, i'll delete the code i wrote and use the S:53 function.
I'll have to take into account day light saving....forgot about that...Doh!


Cheers
Sparky ;)
 
Day of Week

Note that when the RSS program is converted to PLC5, the subtract amount for rounding floats to integers has to change from 0.5 to 0.4999 because of the odd way PLC5s round. Also you cannot use more than three 9s as 0.49999 gets rounded to 0.5. bonkhead
 

Similar Topics

Hi everyone, This is my first time posting, so please forgive any omissions or mistakes. I am attempting to control the velocity of a stepper...
Replies
18
Views
1,045
Good morning, I have a question. I don't know much about ST yet I would like to calculate the average number of products per hour. how do I do...
Replies
22
Views
2,973
Can someone help me with this? I'm no good at SCL - virtually everything I've done so far has been ladder logic. The return value from the...
Replies
13
Views
1,110
I want to calculate the energy consumed from instantaneous power. Can this be done using the TOT block with timebase set to Hour?
Replies
2
Views
697
Hi everyone, I have to calculate the length in millimeters of a glass that enters a transport (I don't know the speed yet) through a barrier...
Replies
15
Views
3,469
Back
Top Bottom