Indirect Addressing in Studio 5000 to Store and Retrieve Data
Vložit
- čas přidán 28. 12. 2021
- Storing and retrieving numbers in arrays with indirect addressing in Studio 5000 / RsLogix 5000 is an important step in taking you from a basic bit PLC programmer to more intermediate task. We could use a FIFO to load and unload data but we can learn a lot about arrays and indirect addressing by doing this with some basic ladder logic.
Get the full details of this lesson at courses.twcontrols.com/
Items used in this video:
PLC Trainer twcontrols.com/plc-trainers
The above links make these videos possible. Please use them!
Support these videos while you advance your skills courses.twcontrols.com/ - Věda a technologie
This is great. I was confused at the index function but I could adapt this to logging multiple alarms being triggered which one activated first
Even though allot of this is hard for me to fully fallow it's cool to see how much of it i do understand and I'm growing to understand thanks for the videos
Great to hear!
While OTL's and OTU's are the devil, my main feedback is using the same CTU in multiple locations. In situations where you have multiple things that can increment a counter, it is usually better (in several different resepects), to use either several booleans "or'd" leading to the counter, or (my preferred method) use ADD(1,index,index) in place of the CTU's. Then use MOV(0,index) to reset. It saves memory, scan time, and you don't need to deal with unused flags.
Looking forward to future videos!
Thanks! this helped me understand a little bit more than i did before hand
Tim I love you, I applied this technique to grabbing and storing a analog value, and this helped a ton and much cleaner than the other example I found used by the SI's that built the equipment
Glad it helped!
Very nice I like how you do it on the fly and give us the chance to see how you fix these bugs as you develop code.👍👍
Glad you like it, thanks for watching!
this was beautiful!!!!
Thanks!
Great video and great explanation.
Thank you for you job! 💯
...
Just curious, what to do after 101 pres button?
Great video!
Thank you
thank you , that was great
Glad you enjoyed it!
wow thats so useful! thank a lot, would be nice to do more video like this? If you have a course that involve advance programming like this let me know, I will pay.
How important are subroutines? I see them in my plants program. But dont understand why a program would use them.
Great question. The main reason is for organization. Typically, all alarms will be in one routine, all outputs on another... It makes it easier to figure out where to go when you're looking for the problem.
Very nice!
Thanks!
Hello Mr Wilborne , thank you very much for the answer to this Quiz , I have being traying to implement it on CCW Micro810 I hope I can get it right
Great Rodolfo, it will work the same in CCW.
verry good !
Thank you.
Hello Tim, thank you for posting awesome videos.
You are very welcome!
Loved the video, very helpfulll...could you explain how to use a indirect value in compare routines? Old logix use a different way. Like N[N10_2]:[N10_4] but not sure how new logix works now.
You would replace that with a 2 dimensional array. Here is a video in that.
czcams.com/video/Rl9nT029Zsc/video.html
Awesome
Thanks Erieg!
Tim, is there is a way to generate a random numbers from 1-4 so we can do this problem backwards
Yes, you can make one that at least appears random enough for human eyes :)
@@TimWilborne how would you do this? I tried to do this with a timer but didn't got a random, after a couple seconds i start getting a pattern instead of random numbers
Cannot remember this simple thing: @1:45 "lets go ahead" what are you clicking on to make comment?
Control D
Careful, if you press the buttons 101 times in a row you'll fault the controller ;)
And have sore fingers 😜
what would be the solution to not fault it?
@@aaw7410 you would add an LES instruction that only increments the index if the current number is less than the array size