cumulative timer in CCW

sixstringz

Member
Join Date
Jan 2015
Location
Idaho
Posts
18
I am a rookie looking for direction, not handouts.

I need to calculate the time on of an input (sensor) and compare it with the time on of another. I have the TDF function and compare function figured out, just not sure on the cumulative timer? can I used the elapsed time of an RTO to use as the time variable for the TDF? šŸ™ƒ
 
I would just use math instead of timers. Use the system pulse bits to keep track of when the inputs are on / off independently. Use the 0.1 second pulse and the input to add to a word. Use different words depending on the conditions.

Regards,
Garry
http://www.accautomation.ca
 
It depends how long your inputs are going to be on for. A TDF function works off the free running clock, which only counts to just over 10 seconds.

I would use a RTO on each input, then use math instructions to compare the ACC in each timer.
 
the Inputs will be on for about 750ms, then off for 1.5s. I need to output when there is more than a 50ms difference between the two.
 
http://www.accautomation.ca
I am not sure on your CPU, but here are my thoughts.
If you can fix the scan rate of the PLC, then count the number of scans.
Some processors will have a register with the current scan time. Use this to add the time.
Regards,
Garry
 

Similar Topics

Im trying to sum a running "Shift Total" production value and move it into a Month Total value that will continuously update for viewing...
Replies
1
Views
1,534
I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
91
Hi all, I have a simple question that I have overcomplicated and gotten stuck on. I have a variable, we can call it "light" that I need to stay...
Replies
4
Views
310
Question to anyone with ideas about my thoughts on upgrading a very vintage timer, which is being used to switch between 2 5hp domestic water...
Replies
14
Views
437
why my timer only executes once here? After first time i use it, ET stays at 0ms all the time. It is in FB
Replies
5
Views
314
Back
Top Bottom