I am currently working on a refinery site and looking at an ongoing issue regarding a loss of data after power loss to a Contrologix 5562 Processor. These are gas usage totaliser readings returning to zero. Inside the code the totalisers are reset when the PLCTime variable is set to midnight each day and yearly totaliser on the new years eve at midnight (Year 1, Month 1, Day 1, Hour 0, Minute 0. The PLCTime is produced by a GSV Walltimeclock function, this is in the main routine.
I know that variables should be retained after a power loss, but i wasn't sure how this dealt with the GSV Walltimeclock. Is it correct to think for the first scan this would default to Year 1, Month 1, Day 1, Hour 0, Minute 0, Second 0, mS 0. If this is the case is there a way around this??
I know that variables should be retained after a power loss, but i wasn't sure how this dealt with the GSV Walltimeclock. Is it correct to think for the first scan this would default to Year 1, Month 1, Day 1, Hour 0, Minute 0, Second 0, mS 0. If this is the case is there a way around this??