Week number from SLC status registers??

Steve Kemp

Member
Join Date
Nov 2003
Posts
122
Hi All. I've got to print a label that includes the current week number as part of the information. My brain's turned to sludge... If I use an incremental system, it's not power-cycle proof, but the pitfalls of an absolute system with the available data from the S2 registers are all too obvious. Big lookup? Surely not.
 
Mr. Bloke, thanks for the link. Whilst it does deal with power cycling issues in more than one post, I think what I'm after may be buried in there somewhere but beyond my sleuthing abilities! Steve.
 
Oops! I'd forgotten to load the "days in the month" into the N255 registers...

EDIT: ...or in my case, N10s...
BTW, it must have clearly been an engineering -and not management- decision to have leap years divisible by 4.

Thanks again, Steve.
 
Last edited:

Similar Topics

How can I get the week number of an Siemens S7-400 PLC? Can I calculate it or is there an other option?
Replies
4
Views
3,068
Hi All, I'd like to know can we use DTR instruction to get a week pulse ? Could anyone please help me to understand that one ? I've managed to...
Replies
4
Views
157
The day of week program started changing day of week 2 hours early. It changes at 10 P.M. instead of 12A.M. Just started this year.
Replies
22
Views
2,393
For some reason that I do not understand, FactoryTalk is showing the Day of Week in the time and date display, despite the fact that this isn't an...
Replies
5
Views
1,190
This is the reason why I signed up here and decided to get some help before I tackle the traffic light program on Wednesday. It looked good on...
Replies
17
Views
11,629
Back
Top Bottom