Indirect Addressing in Studio 5000 to Store and Retrieve Data

Поділитися
Вставка
  • Опубліковано 21 січ 2025

КОМЕНТАРІ • 41

  • @hallauk26
    @hallauk26 3 роки тому +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 Рік тому +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

  • @aaw7410
    @aaw7410 2 роки тому +1

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

  • @LibertyCoke
    @LibertyCoke 2 роки тому +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

  • @adamthethird4753
    @adamthethird4753 3 роки тому +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 3 роки тому +5

    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  3 роки тому +2

      Glad you like it, thanks for watching!

  • @Jrjulio95
    @Jrjulio95 2 роки тому +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

  • @kingofslotsmillion3263
    @kingofslotsmillion3263 Рік тому +1

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

    • @TimWilborne
      @TimWilborne  Рік тому +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?

  • @toke7342
    @toke7342 Рік тому +1

    Great video!

  • @Nico_silva316
    @Nico_silva316 2 роки тому +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  2 роки тому

      You would replace that with a 2 dimensional array. Here is a video in that.
      ua-cam.com/video/Rl9nT029Zsc/v-deo.html

  • @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.

  • @Jarg555
    @Jarg555 2 роки тому +1

    this was beautiful!!!!

  • @christopherpohl2267
    @christopherpohl2267 3 роки тому +1

    Very nice!

  • @PICHONBOLITOCHO
    @PICHONBOLITOCHO 3 роки тому +1

    Hello Tim, thank you for posting awesome videos.

  • @elyaoussama4832
    @elyaoussama4832 2 роки тому

    thank you , that was great

  • @yamotorola
    @yamotorola 2 роки тому +1

    verry good !

  • @eriegraubenheimer5405
    @eriegraubenheimer5405 3 роки тому +1

    Awesome

  • @barbarasmith5489
    @barbarasmith5489 3 роки тому +1

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

  • @tomgiorgio9368
    @tomgiorgio9368 3 роки тому +1

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

    • @TimWilborne
      @TimWilborne  3 роки тому +1

      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

  • @Peewee0413
    @Peewee0413 2 місяці тому +1

    FAL...

    • @TimWilborne
      @TimWilborne  2 місяці тому +1

      Are you wanting to see videos on the FAL, I think there are a few but class this week so short on time.