periodic Task

learner

Lifetime Supporting Member
Join Date
Apr 2007
Location
British Columbia
Posts
81
I testing a simple periodic task. it has only one Rung consisting of an upcounter.
I expect that the counter counts any time the periodic task is executed. however it doesn't. is there anything else that I should be doing.

Logix 5000 ver 19.

Thanks

Always a learner
 
use an ADD instruction on an unconditional rung instead ...

Source A = test
Source B = 1
Destination = test

the Counter needs to see a "transition" from FALSE to TRUE in order to make a count ... the ADD doesn't ...
 
Remember that Counters execute only on a false-to-true transition of the rung conditions preceding them.

The ADD instruction, by contrast, will execute every scan if the rung conditions preceding it are true.

One way to make the Counter count every program scan is to place a rung after the counter that un-latches the .CU (Count Up) bit.
 
An ADD is a better approach.

However, to use a counter you can just unconditionally unlatch the Counter.CU bit on a rung right after the counter. The .CU bit is how the counter detects a false to true transition of the rung. Clearing it lets the counter increment again on the next scan.
 
Last edited:

Similar Topics

Hello everyone, I am new to PLCs, what will happen if I set the Period of a Periodic task lesser than its execution Time for ControlLogix...
Replies
1
Views
1,664
I currently running a compact logix 1769-L33ER 20.11. I have a functioning periodic task that runs every 100ms, using rslogix 5000. This task is...
Replies
6
Views
2,512
I've inherited a L61 that was installed last year and the memory usage is well into the red. There is only one continuous task with a scan time of...
Replies
5
Views
3,760
Can this be done based on a pre-selected condition while the PLC is in Run mode? (Logix 5K V20 - Compactlogix L43 CPU)
Replies
17
Views
5,118
Have you ever implemented an event driven periodic task in CLX? How'd you go about it? I have a task that needs to be executed at least every...
Replies
9
Views
2,476
Back
Top Bottom