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

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.
 
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...
24
Replies
18,622
Views
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...
5
Replies
2,886
Views
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...
7
Replies
5,927
Views
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...
35
Replies
12,977
Views
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...
4
Replies
8,532
Views
Top