Indirect Addressing in Studio 5000 to Store and Retrieve Data

  Рет қаралды 15,741

Tim Wilborne

Tim Wilborne

2 жыл бұрын

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/

Пікірлер: 40
@hallauk26
@hallauk26 2 жыл бұрын
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
@josephjorgensen3282
@josephjorgensen3282 6 ай бұрын
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
@TimWilborne
@TimWilborne 6 ай бұрын
Great to hear!
@adamthethird4753
@adamthethird4753 2 жыл бұрын
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!
@aaw7410
@aaw7410 2 жыл бұрын
Thanks! this helped me understand a little bit more than i did before hand
@LibertyCoke
@LibertyCoke Жыл бұрын
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
@TimWilborne
@TimWilborne Жыл бұрын
Glad it helped!
@huntersblue
@huntersblue 2 жыл бұрын
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.👍👍
@TimWilborne
@TimWilborne 2 жыл бұрын
Glad you like it, thanks for watching!
@Jarg555
@Jarg555 Жыл бұрын
this was beautiful!!!!
@TimWilborne
@TimWilborne Жыл бұрын
Thanks!
@toke7342
@toke7342 Жыл бұрын
Great video!
@TimWilborne
@TimWilborne Жыл бұрын
Thank you
@elyaoussama4832
@elyaoussama4832 2 жыл бұрын
thank you , that was great
@TimWilborne
@TimWilborne 2 жыл бұрын
Glad you enjoyed it!
@christopherpohl2267
@christopherpohl2267 2 жыл бұрын
Very nice!
@TimWilborne
@TimWilborne 2 жыл бұрын
Thanks!
@volodymyrcihovsky7881
@volodymyrcihovsky7881 2 жыл бұрын
Great video and great explanation. Thank you for you job! 💯 ... Just curious, what to do after 101 pres button?
@yamotorola
@yamotorola Жыл бұрын
verry good !
@TimWilborne
@TimWilborne Жыл бұрын
Thank you.
@rodolforodriguez70
@rodolforodriguez70 2 жыл бұрын
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
@TimWilborne
@TimWilborne 2 жыл бұрын
Great Rodolfo, it will work the same in CCW.
@Bilal-fb3rg
@Bilal-fb3rg 2 жыл бұрын
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.
@eriegraubenheimer5405
@eriegraubenheimer5405 2 жыл бұрын
Awesome
@TimWilborne
@TimWilborne 2 жыл бұрын
Thanks Erieg!
@PICHONBOLITOCHO
@PICHONBOLITOCHO 2 жыл бұрын
Hello Tim, thank you for posting awesome videos.
@TimWilborne
@TimWilborne 2 жыл бұрын
You are very welcome!
@Nico_silva316
@Nico_silva316 Жыл бұрын
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.
@TimWilborne
@TimWilborne Жыл бұрын
You would replace that with a 2 dimensional array. Here is a video in that. kzfaq.info/get/bejne/iNJpobdhl5--o5c.html
@kingofslotsmillion3263
@kingofslotsmillion3263 9 ай бұрын
How important are subroutines? I see them in my plants program. But dont understand why a program would use them.
@TimWilborne
@TimWilborne 9 ай бұрын
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.
@Jrjulio95
@Jrjulio95 Жыл бұрын
Tim, is there is a way to generate a random numbers from 1-4 so we can do this problem backwards
@TimWilborne
@TimWilborne Жыл бұрын
Yes, you can make one that at least appears random enough for human eyes :)
@Jrjulio95
@Jrjulio95 Жыл бұрын
@@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
@barbarasmith5489
@barbarasmith5489 2 жыл бұрын
Cannot remember this simple thing: @1:45 "lets go ahead" what are you clicking on to make comment?
@TimWilborne
@TimWilborne 2 жыл бұрын
Control D
@tomgiorgio9368
@tomgiorgio9368 2 жыл бұрын
Careful, if you press the buttons 101 times in a row you'll fault the controller ;)
@TimWilborne
@TimWilborne 2 жыл бұрын
And have sore fingers 😜
@aaw7410
@aaw7410 2 жыл бұрын
what would be the solution to not fault it?
@mrtomgiorgio
@mrtomgiorgio 2 жыл бұрын
@@aaw7410 you would add an LES instruction that only increments the index if the current number is less than the array size
Studio 5000 & RsLogix 5000 Produced and Consumed Tags
20:50
Tim Wilborne
Рет қаралды 25 М.
RSLogix 5000 Indirect Addressing Detailed Version
42:43
Shane Welcher
Рет қаралды 15 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 50 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 80 МЛН
Indirect Addressing In Studio 5000 V32 (Simple State Logic Control)
20:06
Studio 5000 AFI Always False Input vs JMP LBL to Disable Rung
8:33
Tim Wilborne
Рет қаралды 3,4 М.
Creating UDT's (User-defined Data Types) using Allen Bradley RSLogix/Studio 5000!
14:39
Scantime Automation & Training
Рет қаралды 8 М.
Produced and Consumed Tags in Studio 5000
10:13
Tim Wilborne
Рет қаралды 7 М.
PLC Addressing
25:24
Mr. Leigh
Рет қаралды 19 М.
Moving PLC data into arrays
12:56
Professor Murray
Рет қаралды 7 М.
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 7 МЛН
Что еще за съемные фронталки от Vivo? #vivo
0:41
Main filter..
0:15
CikoYt
Рет қаралды 16 МЛН
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 648 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 3,2 МЛН