FIFO with 10 sec delay

realolman

Member
Join Date
Mar 2009
Location
here
Posts
584
RsLogix 500... micrologix 1500

how can I make something similar to a first in first out register for floats (maybe integers)with a 10 second delay?

I want to collect numbers from a process in approx 1/2 - 1 sec intervals, use them at another point in the process 10 sec later.... and then evaporate them. Additionally I want to hold the timing if the process stops.

thanks in advance
 
Interval=0.5 seconds and the length of file = 10 seconds, so you need at least 20 elements in your file.

Let's double that, in case you need to double the frequency to 1/4 second sample rate. So, let's use F8:0 through F8:39 for the samples.

Now write code to enable your repeating sample interval timer. Any enabling logic, followed by a not done condition for ther timer, and then the TON instruction with a 1/2 second preset.

After that, you need a rung to take samples when the timer is done. So, youll examine the timer done bit, and when true, you will COP F8:1 to F8:0 with a length of 39, and add a branch to move the new sample to F8:39.

So, F8:39 will be the newest sample, and F8:38 will be what was there one preset (1/2 a second) ago, and F8:19 will be what was sampled ten seconds ago.

Note that if you change the preset, you need to change the offset to match (or calulate and limit check the result to use indirection).
 

Similar Topics

I am not sure if this is possible but if there is a way, you guys would be the ones to know. I am currently working on a project where we are...
Replies
7
Views
216
Hello all, I'm using a 5069-L330ER in a project and I need to essentially capture some data that will be shown as a trend on a screen. The data...
Replies
9
Views
961
Hello! I have a network of conveyors bringing raw product to 4 machines. A sensor in the hopper of each machine calls for more product. I'm...
Replies
15
Views
5,869
Hello everyone, has anyone out there ever made a FIFO using an FFL and FFU instructions on a Micro800? I have tried setting it up just as I would...
Replies
9
Views
3,115
I have a bottle capper that is using an encoder and FIFO logic to track the free standing bottles passing through a bottle capper. I have checked...
Replies
31
Views
11,673
Back
Top Bottom