Indirect Addressing in Studio 5000 to Store and Retrieve Data

Sdílet
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

Komentáře • 40

  • @hallauk26
    @hallauk26 Před 2 lety +3

    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 Před 6 měsíci +2

    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

  • @adamthethird4753
    @adamthethird4753 Před 2 lety +1

    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 Před 2 lety +1

    Thanks! this helped me understand a little bit more than i did before hand

  • @LibertyCoke
    @LibertyCoke Před rokem +1

    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

  • @huntersblue
    @huntersblue Před 2 lety +4

    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  Před 2 lety +2

      Glad you like it, thanks for watching!

  • @Jarg555
    @Jarg555 Před rokem +1

    this was beautiful!!!!

  • @volodymyrcihovsky7881
    @volodymyrcihovsky7881 Před 2 lety +1

    Great video and great explanation.
    Thank you for you job! 💯
    ...
    Just curious, what to do after 101 pres button?

  • @toke7342
    @toke7342 Před rokem +1

    Great video!

  • @elyaoussama4832
    @elyaoussama4832 Před 2 lety

    thank you , that was great

  • @Bilal-fb3rg
    @Bilal-fb3rg Před 2 lety +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.

  • @kingofslotsmillion3263
    @kingofslotsmillion3263 Před 9 měsíci +1

    How important are subroutines? I see them in my plants program. But dont understand why a program would use them.

    • @TimWilborne
      @TimWilborne  Před 9 měsíci +2

      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.

  • @christopherpohl2267
    @christopherpohl2267 Před 2 lety +1

    Very nice!

  • @rodolforodriguez70
    @rodolforodriguez70 Před 2 lety +1

    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  Před 2 lety +1

      Great Rodolfo, it will work the same in CCW.

  • @yamotorola
    @yamotorola Před rokem +1

    verry good !

  • @PICHONBOLITOCHO
    @PICHONBOLITOCHO Před 2 lety +1

    Hello Tim, thank you for posting awesome videos.

  • @Nico_silva316
    @Nico_silva316 Před rokem +1

    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  Před rokem

      You would replace that with a 2 dimensional array. Here is a video in that.
      czcams.com/video/Rl9nT029Zsc/video.html

  • @eriegraubenheimer5405
    @eriegraubenheimer5405 Před 2 lety +1

    Awesome

  • @Jrjulio95
    @Jrjulio95 Před rokem +1

    Tim, is there is a way to generate a random numbers from 1-4 so we can do this problem backwards

    • @TimWilborne
      @TimWilborne  Před rokem +1

      Yes, you can make one that at least appears random enough for human eyes :)

    • @Jrjulio95
      @Jrjulio95 Před rokem

      @@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 Před 2 lety +1

    Cannot remember this simple thing: @1:45 "lets go ahead" what are you clicking on to make comment?

  • @tomgiorgio9368
    @tomgiorgio9368 Před 2 lety +1

    Careful, if you press the buttons 101 times in a row you'll fault the controller ;)

    • @TimWilborne
      @TimWilborne  Před 2 lety +2

      And have sore fingers 😜

    • @aaw7410
      @aaw7410 Před 2 lety

      what would be the solution to not fault it?

    • @mrtomgiorgio
      @mrtomgiorgio Před 2 lety +1

      @@aaw7410 you would add an LES instruction that only increments the index if the current number is less than the array size