SLC Clock Wipes During Update

I_Automation

Lifetime Supporting Member
Join Date
Jun 2020
Location
Detroit, Michigan USA
Posts
1,648
I was online a SLC5/04 yesterday and one thing I did was go to processor properties and set the date and time to get the PLC clock current. It wasn't off a lot, but a good time to get it exact.



When I clicked the button I noticed the outputs that were enabled by clock time all flickered off quickly. Did it again and they flickered again.


When I got home I wanted to see what was going on so in my home automation SLC5/05 I set a few traps and logs.



Turns out when the time is set online the time goes to 00:00:00 for about 0.04 seconds and during that time since it's midnight officially the clock controlled outputs turn off or on as they should be at midnight.



I say about 0.04 because a couple of times it logged 0.03 seconds, but mostly 0.04 so if I put a 0.001 time base I'm guessing it's somewhere around 0.035



After the 0.04 seconds of midnight the clock then reads the new time.


EDIT: If you change the time by the program or entering a new value in the S2 file when online it jumps to the new time immediately, not even 1 scan of 00:00:00



Been working on SLC's since the 90's and never noticed this before yesterday.


EDIT 2: Now I'm wondering if the time is externally set by a message or time synch master if it does this. I don't have another 5/05 to test this with so I'll just keep it on my ToDo list.
 
Last edited:
In thinking about this now, if I had a critical operation I wouldn't read the S2 time directly.


I would copy the S2 time to N7 integers, and watch that it's NOT 00:00:00 unless it was 23:59 in the past minute, then use those N7 time values to run things.

Plus going to power up a ML1400 and see if a RTC does this. Wish I had a ControlLogix CPU now.
 
Last edited:
you could also check the year; I would expect the entire time value is being zeroed for those few milliseconds.
 
Micrologic Update:


The ML1400 processor does wipe the date/time to 0-0-0 00:00:00 when the RTC is set online.


Also the ML1400 sets the DayOfWeek to 0 that the SLC did not change.


But I was able to add NEQ RTC:0.YR 0 before the COP that copies the data to an integer file so that integer file is never all zero's and the PLC operation not effected.
 
Last edited:

Similar Topics

Hello I was needing to stop one device and start the second device at a certain time each day, for example 10:00 am each day. I thought the best...
Replies
13
Views
5,230
Hey everyone I'm adding some code to a program to keep track of the date and time when a system is enabled and disabled. I'm using the status...
Replies
1
Views
1,781
I have an application that requires the correct time controlling of some outputs, but during testing have discovered the SLC 5/03's clock looses a...
Replies
24
Views
7,925
I have a question from a customer about a site, where he wants a new control panel, which he wants the PLC to link to their SCADA via Modbus...
Replies
9
Views
6,783
I've been looking for a listing of clock cycles each instruction uses for the SLC and micrologix instruction set. The purpose of this is to...
Replies
3
Views
2,310
Back
Top Bottom