Studio 5000 AFI Always False Input vs JMP LBL to Disable Rung

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 54

  • @ShaneWelcher
    @ShaneWelcher Год назад +2

    Solid point Tim, I appreciate the honest viewpoint.
    I like to stick with these foundational elements.
    -Achieve the scope of work
    -Make it reliable
    -Make it easy to read for the person behind us
    This at the very least.
    Again, I appreciate your videos and your view on things.

  • @markpnw8745
    @markpnw8745 Год назад +8

    This is the best illustration I have seen. I create a test bit, now I need to re think how I disable logic.

    • @TimWilborne
      @TimWilborne  Год назад +2

      I'm glad it was helpful. I have had many people send me good test code asking what is wrong and when I ask them how they disabled the old code, I find out they stuck an AFI in front of it which as the problem.

  • @MegaHawg
    @MegaHawg Год назад +4

    You just saved me hours of troubleshooting! I will be JMPing in my current program for extruder controls Monday morning. Thanks Tim!!!!

  • @deongovender246
    @deongovender246 10 дней назад +1

    Thank you, this helped alot. Simple but effective explanation.

  • @jeremymcdonald5281
    @jeremymcdonald5281 Год назад +2

    Simply the best instructor. Thank you Tim. Linked in brought me here. 🎉

  • @rodrigoruiz9710
    @rodrigoruiz9710 Год назад +1

    It's completly insane the easy way do you explain this simple but powerful differences betwen each instruccions, thanks for the great video! Greetings from Mexico

  • @alecnab2340
    @alecnab2340 Год назад +1

    One of the best videos from Tim. Great presentation.

    • @TimWilborne
      @TimWilborne  Год назад +1

      Thank you, you made my evening 😁

  • @professorXPM
    @professorXPM 3 месяца назад +1

    Very informative!! You got a new subscriber

  • @seeigecannon
    @seeigecannon Год назад +1

    I really wish there was a single instruction equivalent to a // in ladder. That said, it might do unintuitive things when used within a branch.
    I was surprised when the green light was flickering. I always thought the code is executed, and at the end of the scan was when the outputs were applied to the real world. I lean stuff quite often from you. Glad you have a physical device you are working off of.

    • @TimWilborne
      @TimWilborne  Год назад +1

      I'm going to do a follow up next week but the I/O and continuous task are not executed in sync
      Also, some people have made some other suggestions that you may find helpful

  • @tysonhimself
    @tysonhimself Год назад +2

    i’m glad you showed this. definitely cleared up a misunderstanding for me

  • @nddwind
    @nddwind Год назад +2

    This has more to do with the fact that you are using two OTEs for the same bit rather than using an AFI. Even without an AFI that light/output would have behaved the same way unless you were pressing both push buttons at the same time.
    If instead you examined the contacts of each push button with an XIC/XIO controlling a latched and unlatched bit then the AFI would behave the way you wanted. Not that I would personally write logic that way.
    I have always found it helpful to think of an AFI as basically just a blocking bit, something that "blocks" the completion of the rung or branch on which its placed.
    Just my thoughts from a fellow CE and someone who enjoys the content you provide.

    • @TimWilborne
      @TimWilborne  Год назад +2

      I wouldn't do this either but enough people think it disabled the rung that it was worth talking about

    • @nddwind
      @nddwind Год назад +1

      @@TimWilborne Ah I gotcha. Yeah maybe it helps people think about it differently.

  • @akupadhyayula
    @akupadhyayula Год назад +2

    Love these tips, learned something new

  • @disun4152
    @disun4152 Год назад +1

    Thank you Tim for the great video. I am still wondering about the light is flickering. There is still something I do not understand. From what I understand RPI is the request packet interval that the module has to be updated. Since the program is so simple, it should be updated within the RPI time. Another point is the toggle bit function, it will affect the logic depending the bit location before it is updated (coil) in the program. I did some tests before. I cannot really recall.

    • @TimWilborne
      @TimWilborne  Год назад +1

      The scan is asynchronous so sometimes the output is updated after rung 0 and sometimes after rung 1. It does spend more time on the 2nd, hence why changing the positioning of the rungs affected they outcome so much

  • @EthanChernoxx
    @EthanChernoxx Год назад +1

    It looks like the flickering is caused by the yellow button rung being true in the scan cycle, then as the scan cycle continues, the light turns off due to the AFI rung. So, it's just rapidly turning on and off?
    Thanks for the video. I've been wondering about the AFI myself after seeing it a lot in some programs.

    • @TimWilborne
      @TimWilborne  Год назад +2

      Maybe I'll explain it in the next live update 😁

  • @kenyalaster
    @kenyalaster Год назад +1

    That's Fire, I love it thanks, Tim

  • @CryptoGlific-fw8of
    @CryptoGlific-fw8of 11 месяцев назад +1

    This is also a good example of what they taught me in programming about having double OTE’s in that the rung 0 is true for that output but will not light the output since rung 1 is false. Last rung wins. I see double OTE’s cause a lot of headache if not caught.

    • @TimWilborne
      @TimWilborne  11 месяцев назад +1

      Oh no, you didn't say the last rung wins...ruclips.net/user/liveUVNxBrErl9c?feature=share

  • @jfalbo
    @jfalbo Год назад +1

    Great videos. I learn a lot from you. Couldn't you place the AFI at the beginning of the rung you want to disable? Thanks

    • @TimWilborne
      @TimWilborne  Год назад +3

      No, that's exactly what I explained DIDN'T work in this video.

  • @gregbrand420
    @gregbrand420 7 месяцев назад +1

    Great video, but I'm still confused. It almost seems like the AFI is dangerous if it truly doesn't ALWAYS disable a rung, and that the GOTO instruction is a better way to go if you really want to disable a specific rung. Or am I missing something?

    • @TimWilborne
      @TimWilborne  7 месяцев назад +1

      It doesn't disable the rung, it makes it false. It isn't dangerous. It just serves a different purpose than some people think. Here is a follow up video I did.
      ruclips.net/user/liveUeI8s4oc758?si=urWQYXqYdgkTKej2

  • @bryanfrancisco-t7x
    @bryanfrancisco-t7x 8 месяцев назад +1

    Hello, i love your videos. Can you explain about implicit and explicit messaging in allen bradley. Other plc has it as a data block or instruction but i cant see in allen Bradley. Thanks in advance

    • @TimWilborne
      @TimWilborne  8 месяцев назад +1

      That would make a good video. For starters, implicit messaging is typically for IO connections that are configured in Studio 5000. I remember this because "I"mplicit...I means IO. Explicit messaging is usually when you use a MSG instruction to read or write data to another devices.

    • @bryanfrancisco-t7x
      @bryanfrancisco-t7x 8 месяцев назад +1

      @@TimWilborne ok I will stay tuned for that video for implicit message. Now I understand that MSG instruction is explicit.

  • @johntgilmore1
    @johntgilmore1 Месяц назад +1

    Thank you so much

  • @BTech5
    @BTech5 6 месяцев назад +1

    I watched this video because while troubleshooting problem I came across a AFI instruction at the beginning of the rung . The rung only containing MOV instructions (3) after the AFI. At first I assumed the AFI instruction was stopping the moves from executing but it appears that they still are. I since have fixed the issue. I am still curious about the AFI in front of move instructions will it stop them from executing???

    • @TimWilborne
      @TimWilborne  6 месяцев назад +1

      Highlight the MOV or any instruction, then right click it and select instruction help. Scroll down until you find the execution diagram. It will always be evaluated as false and in the MOV's case, a false condition will do nothing.

    • @BTech5
      @BTech5 6 месяцев назад +1

      @@TimWilborne Thanks and keep up the good work love your videos man

    • @TimWilborne
      @TimWilborne  6 месяцев назад +1

      You are welcome.

  • @PowerHaus304
    @PowerHaus304 7 месяцев назад +1

    If I ever come back to the states I am buying you a beer.

  • @orlineuceda38
    @orlineuceda38 11 месяцев назад +1

    Is it possible to add a toggle bit that can turn on and off the JMP instruction?

    • @TimWilborne
      @TimWilborne  11 месяцев назад +1

      Yes. Also here's a more detailed video about editing that may help
      ruclips.net/user/liveqLXBDobuA2U?si=wftM6qDZid20tqw7

  • @willpollock9349
    @willpollock9349 8 месяцев назад +1

    Why not just stick a 'EQU 1 0' or a 'CMP 1=0' in the rung?

    • @TimWilborne
      @TimWilborne  8 месяцев назад +1

      You could but at first glance, I think the AFI would be clearer. Plus not all can use a constant in Source A

  • @cccook2005
    @cccook2005 Год назад +1

    Basic Ladder Logic Rule. Never use the output instruction more than once in a program.

    • @TimWilborne
      @TimWilborne  Год назад +1

      I agree but in these cases people were discussing temporarily testing new code on existing outputs