É a melhor explicação para se utilizar do recurso e instrução FIFO! Grato Welcher !!! It's the best explanation for using the FIFO resource and instruction! Thank you Welcher!!!
A FIFO is a first in First out so it stays in order and is an instruction set to use to minimize how much programming you have to do. Really is just a preference but is very effective and helpful to have more tools in your belt as a programmer so when you need to shift then shift but if no need to shift then do it your own way or the way you prefer.
The while/for looping takes more time. (How much time is a function of the PAC and the firmware. Rockwell claims that improvements have been made to the scan time of Function Block/Structured Text routines to get them to be compiled tither to scan as fast as Ladder Logic.) The other advantage to the Ladder Logic FIFO's is ease of troubleshooting as the code that the instruction employs is not visible and thus possible altered. It remains consistent. It would be nice if Rockwell would one day create the of Shift Registers, FLL, FAL, FSC, Bit Shift, etc. for Structured Text equivalents given the faster scan times of the newer PAC. (-L8x)
How could I move the elements in an array? for example, I have 10 elements and I want to add a new one at position 0 by moving the one that was in 0 towards 1, 1 through 2, 2 through 3 and so on
Shane, this is a great video that explains FIFO usage very well, thank you for sharing this information. After watching this video and your next video that goes through an example of a FIFO I added a FIFO very similar to yours to our ladder logic to try and average data coming from an encoder and I have ran into 2 issues that I was wondering if you know how to solve and one question about something that you briefly mentioned in one of these two videos. 1. The array length is 15 and so it goes from 0-14, so I set my length to 15 but the position only ever goes to 14 and so the unloading does not occur. If I change the length from 15 to 14, the position stops at 13 and unloading does not occur again. So, this means that the array never fills the last spot and I am unable to unload the array. 2. I am not sure if this issue is due to the previous issue, but the array position can start at zero and then get filled according to the FIFO loading instruction but the data coming in does not get recorded to the array, it remains as all zeroes even though my source is a steadily oscillating speed. What can cause this? I tried the timer the same way you did and I had no luck either, I am not getting data into the array even though the position goes to 14 as mentioned in the previous issue. Question: You mentioned that you use FIFOs to help you average the data, how exactly do you do that? I tried it by using a rung below the FIFO that just had the AVE function block and that caused an issue where the array never loaded anything, is there something that causes it to conflict with the FIFO? Thanks Shane, I am a beginner at PLC so I apologize about my limited ability to my issues.
Thank you, glad to help. Not sure if you are interested but I do have a PLC training course if you have a need. I have two free mini-courses and one paid that I have moved off on Udemy. Here are the courses if you want to view --- goo.gl/37nQjp
Could you please add a video in how we can display this array in Panel-view studio. I want to see a history of 25 past results. Thanks for all the video and add a link to your payed courses.
Subscribe: mmini.me/Subscribe-4-Updates
Other socials:
Facebook: facebook.com/OnlinePLCSupport
LinkedIn: www.linkedin.com/in/shane-welcher-sr/
hello shane, do you have a whatsapp number, is it possible for us to meet, I wish you success in your work
É a melhor explicação para se utilizar do recurso e instrução FIFO! Grato Welcher !!!
It's the best explanation for using the FIFO resource and instruction! Thank you Welcher!!!
Thank you
Thnx u so much sir...from your template i got load and unload automatically with interval 2 seconds...just put timer between FIFO.EN and FIFO ins
Glad I could help
Amazing tutorial video. Thanks 4 sharing.
Thank you your video, it was easy to follow and it worked - thanks - Bruce
Great to hear, happy to help
Thank you
@@andrebatistelli6952 Anytime
Hello, What will be the main advantage of using FIFO to full an array instead of using structure text for example with a while/for cycle?
A FIFO is a first in First out so it stays in order and is an instruction set to use to minimize how much programming you have to do.
Really is just a preference but is very effective and helpful to have more tools in your belt as a programmer so when you need to shift then shift but if no need to shift then do it your own way or the way you prefer.
The while/for looping takes more time. (How much time is a function of the PAC and the firmware. Rockwell claims that improvements have been made to the scan time of Function Block/Structured Text routines to get them to be compiled tither to scan as fast as Ladder Logic.)
The other advantage to the Ladder Logic FIFO's is ease of troubleshooting as the code that the instruction employs is not visible and thus possible altered. It remains consistent.
It would be nice if Rockwell would one day create the of Shift Registers, FLL, FAL, FSC, Bit Shift, etc. for Structured Text equivalents given the faster scan times of the newer PAC. (-L8x)
Hey quick question... I am allowed to use multiple FFL's and a single FFU all using the same control on the same array, right?
Great question, in my opinion I would not try that
@@ShaneWelcher Thanks for the quick response!
I thought of another way to accomplish what I was trying to do. =)
Used with converging conveyors.
How could I move the elements in an array? for example, I have 10 elements and I want to add a new one at position 0 by moving the one that was in 0 towards 1, 1 through 2, 2 through 3 and so on
Using the same pattern type I show here, there are a few ways to set up these instructions to work differently but like the same
@@ShaneWelcher I had not seen the full video, but thanks for the idea haha
Shane, this is a great video that explains FIFO usage very well, thank you for sharing this information. After watching this video and your next video that goes through an example of a FIFO I added a FIFO very similar to yours to our ladder logic to try and average data coming from an encoder and I have ran into 2 issues that I was wondering if you know how to solve and one question about something that you briefly mentioned in one of these two videos.
1. The array length is 15 and so it goes from 0-14, so I set my length to 15 but the position only ever goes to 14 and so the unloading does not occur. If I change the length from 15 to 14, the position stops at 13 and unloading does not occur again. So, this means that the array never fills the last spot and I am unable to unload the array.
2. I am not sure if this issue is due to the previous issue, but the array position can start at zero and then get filled according to the FIFO loading instruction but the data coming in does not get recorded to the array, it remains as all zeroes even though my source is a steadily oscillating speed. What can cause this? I tried the timer the same way you did and I had no luck either, I am not getting data into the array even though the position goes to 14 as mentioned in the previous issue.
Question: You mentioned that you use FIFOs to help you average the data, how exactly do you do that? I tried it by using a rung below the FIFO that just had the AVE function block and that caused an issue where the array never loaded anything, is there something that causes it to conflict with the FIFO?
Thanks Shane, I am a beginner at PLC so I apologize about my limited ability to my issues.
Thank you, glad to help. Not sure if you are interested but I do have a PLC training course if you have a need.
I have two free mini-courses and one paid that I have moved off on Udemy.
Here are the courses if you want to view --- goo.gl/37nQjp
I will look into more videos, I do the same thing as far as averaging data
@@ShaneWelcher Thanks Shane, I will definitely be looking to complete the courses in the coming weeks.
Thank You!
You're welcome
what does adding the one shot do?
It limits the rungs commands for that rung
Could you please add a video in how we can display this array in Panel-view studio.
I want to see a history of 25 past results. Thanks for all the video and add a link to your payed courses.
Thank you for the support, I can see what I can put together.
The links to the courses are in the descriptions of the videos
@@ShaneWelcher ING you are very good. I also have a project to store 100 data that a sensor gives and display in panel view.