date algorthim for an Allen Bradley PLC
date algorthim for an Allen Bradley PLC
(OP)
Does any one know of an algorithm for converting the date stored in the S2 status file to the day of the week? I have been toying with this and am having dificulty trying to truncate and find the mod ie the remainder of a division while trying to program this PLC-5.thanks again folks
THE KAT
THE KAT





RE: date algorthim for an Allen Bradley PLC
N7:13 contains the answer. 0=Sunday thru 6=Saturday.
RE: date algorthim for an Allen Bradley PLC
RE: date algorthim for an Allen Bradley PLC
thanks for the help but every time I attempt to use the MOD function in the program my PLC crashes horifically and I think the basic equations may be off as I attempted to work them by hand and was unable to come up with a sufficient answer.But thanks again for your time.
TTFN
THE KAT
RE: date algorthim for an Allen Bradley PLC
This equation was obtained from the web site http://www.tondering.dk/claus/cal/calendar26.html. ...;