What Is FIFO in Rockwell PLC Programming?
FIFO is a special programming instruction that can be used in the applications that require to store the sequence of data in order and unload it.
FIFO Instruction
Now we are gonna see how are loading and unloading done in FIFO.
Yes! FIFO should be used in a pair. There should be an instruction to load and there should be an instruction to unload.
The following are the block parameters in FIFO load instruction,
Source:
Here is where one should give an address where the values to be loaded are present.
FIFO:
Here is where one should specify the address where the values have to be loaded. This address seems weird right with an ‘#’ in the front. When we use an ‘#’ symbol in the front it is called an array of addresses.
Obviously there will be a sequence of values present to be loaded arrays are capable of storing many values right? So why we gave ‘#’ in the front should make sense now.
Control:
Here is where one should specify the control address. In Rockwell PLC programming environment there is a separate address for the control with R6:0 as starting one. So when the FIFO load is done loading the values the R6:0 address gives us a true bit.
Length:
Here is where we have to specify the length of the array so that the array of address prepares them for loading the values.
Position:
Here is where we have to give the index number of an array from where the loading has to start. I’ll leave it to 0 so the loading starts from the 0th index.
The following are the block parameters in FIFO unload instruction,
- FIFO – Here is where one has to give the address where the values to be unloaded are present. So obviously both the load and unload has the same address in here.
- Dest – Here is where one has to give the address where the values have to be unloaded.
- Control, Length, and Position carry the same explanation from the FIFO load.
Now we’re going to the run time to see how the loading and unloading happens,
Comments
Post a Comment