joejoe
Guest
J
Hi, i have a controllogix. I made a routine who calculated a day of week.
ctu 0 to 6
acc = 6 and time clock is at midnith then reset ctu
ctu value = 0 then is sunday
it works good.
It is possible to know a day of week like a slc5/04
S:53 = day of week
i used GSV instruction
class name = WALLCLOCK
attribut name = datetime
dest = realtime[0]
I get year,date, hour, second only!!!
There is a way to get a day of week as 1 to 7?????????
thanks
ctu 0 to 6
acc = 6 and time clock is at midnith then reset ctu
ctu value = 0 then is sunday
it works good.
It is possible to know a day of week like a slc5/04
S:53 = day of week
i used GSV instruction
class name = WALLCLOCK
attribut name = datetime
dest = realtime[0]
I get year,date, hour, second only!!!
There is a way to get a day of week as 1 to 7?????????
thanks