Repeating a task.....SLC 5/04

JoseM

Member
Join Date
Jul 2011
Location
Texas
Posts
381
Can you guys recommend me a way of executing a task every 8 hours on an SLC 5/04 processor.

I've being reading about timers and counters but I've also seen comments about repeat ability and inaccuracy.
 
Do you know what is the register for the "Real-Time Clock". I was looking and I couldn't find it.
 
Open the Status data file and look on the right side of the Main tab. Status registers are shown for date and time values. For example, S:40 is the current hour. If you're online with the PLC you can hit the Set Date & Time button to synchronize the clock with your PC.
 
Create an STI file, configure it to execute once per second (100mS * 10mS). This doesn't use a timer, which is the source of inaccuracies

Put a counter in the file, PREset it to 28800

28800 seconds = 480 minutes = 8 hours

XIO Counter.DN, RETurn from subroutine

So Counter.DN enables the code to execute (don't forget to reset the counter)

If you use the plc internal clock, that can be changed by anyone, anytime.....

Need more help, just ask
 

Similar Topics

ControlLogix 5575 (L75): Sudden/Repeating "Unconnected Message Timeout" (0204) This ControlLogix PLC (L75/5575) has been in operation for at...
Replies
24
Views
10,563
Hi all,I'm still learning the ropes using ST in Codesys; I am trying to use two timers that repeat until a condition becomes false. I have...
Replies
5
Views
1,842
Hello, I am returning for some guidance on how to get my program to repeat itself infinitely until a stop button is pressed. I need a particular...
Replies
7
Views
4,027
Lately one of our production lines has been randomly going down. It is all Siemens (S7-300), and about twelve years old, mostly original. The...
Replies
35
Views
11,047
How would I make a timer that would repeat on an interval as long as a certain value is true. IF EVENT THEN EVENTXBIT := TRUE ENDIF IF...
Replies
4
Views
6,605
Back
Top Bottom