Indirect Addressing in Studio 5000 to Store and Retrieve Data

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • 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 controls.tw/yt...
    Items used in this video:
    PLC Trainer controls.tw/yt...
    The above links make these videos possible. Please use them!
    Support these videos while you advance your skills controls.tw/yt...

ความคิดเห็น • 40

  • @hallauk26
    @hallauk26 2 ปีที่แล้ว +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 8 หลายเดือนก่อน +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

    • @TimWilborne
      @TimWilborne  8 หลายเดือนก่อน +1

      Great to hear!

  • @adamthethird4753
    @adamthethird4753 2 ปีที่แล้ว +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!

  • @huntersblue
    @huntersblue 2 ปีที่แล้ว +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  2 ปีที่แล้ว +2

      Glad you like it, thanks for watching!

  • @aaw7410
    @aaw7410 2 ปีที่แล้ว +1

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

  • @LibertyCoke
    @LibertyCoke ปีที่แล้ว +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

  • @kingofslotsmillion3263
    @kingofslotsmillion3263 11 หลายเดือนก่อน +1

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

    • @TimWilborne
      @TimWilborne  11 หลายเดือนก่อน +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.

  • @volodymyrcihovsky7881
    @volodymyrcihovsky7881 2 ปีที่แล้ว +1

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

  • @Bilal-fb3rg
    @Bilal-fb3rg 2 ปีที่แล้ว +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.

  • @rodolforodriguez70
    @rodolforodriguez70 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

      Great Rodolfo, it will work the same in CCW.

  • @toke7342
    @toke7342 ปีที่แล้ว +1

    Great video!

  • @Nico_silva316
    @Nico_silva316 ปีที่แล้ว +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  ปีที่แล้ว

      You would replace that with a 2 dimensional array. Here is a video in that.
      th-cam.com/video/Rl9nT029Zsc/w-d-xo.html

  • @Jarg555
    @Jarg555 2 ปีที่แล้ว +1

    this was beautiful!!!!

  • @Jrjulio95
    @Jrjulio95 ปีที่แล้ว +1

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

    • @TimWilborne
      @TimWilborne  ปีที่แล้ว +1

      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

  • @christopherpohl2267
    @christopherpohl2267 2 ปีที่แล้ว +1

    Very nice!

  • @yamotorola
    @yamotorola 2 ปีที่แล้ว +1

    verry good !

  • @elyaoussama4832
    @elyaoussama4832 2 ปีที่แล้ว

    thank you , that was great

    • @TimWilborne
      @TimWilborne  2 ปีที่แล้ว +1

      Glad you enjoyed it!

  • @PICHONBOLITOCHO
    @PICHONBOLITOCHO 2 ปีที่แล้ว +1

    Hello Tim, thank you for posting awesome videos.

    • @TimWilborne
      @TimWilborne  2 ปีที่แล้ว +1

      You are very welcome!

  • @eriegraubenheimer5405
    @eriegraubenheimer5405 2 ปีที่แล้ว +1

    Awesome

  • @barbarasmith5489
    @barbarasmith5489 2 ปีที่แล้ว +1

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

  • @tomgiorgio9368
    @tomgiorgio9368 2 ปีที่แล้ว +1

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

    • @TimWilborne
      @TimWilborne  2 ปีที่แล้ว +2

      And have sore fingers 😜

    • @aaw7410
      @aaw7410 2 ปีที่แล้ว

      what would be the solution to not fault it?

    • @mrtomgiorgio
      @mrtomgiorgio 2 ปีที่แล้ว +1

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