I have been searching for the PLC clock registers in a compactlogix and I cannot find them. I cannot locate any S: registers that work. Can any of you help me??
Take a look at the GSV instruction and the WALLCLOCKTIME object. Using that instruction you can retrieve the date & time and store them in an array or a UDT.
Check out this technote and this technote. You'll need to be registered at the KB and logged in.
If the links don't work then the technote IDs are 19844 and 27139