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

  Рет қаралды 3,499

Tim Wilborne

Tim Wilborne

8 ай бұрын

Helping you become a better technician so you will always be in demand
Get the full details of this lesson at twcontrols.com/plc-lessons
Items used in this video:
PLC Trainer twcontrols.com/plc-trainers
The above links make these videos possible. Please use them!
Subscribe to our Main channel for How To's kzfaq.info...
Subscribe to our 2nd Channel for Quick Tips www.youtube.com/@TimWilborne2...
Support these videos while you advance your skills courses.twcontrols.com/

Пікірлер: 48
@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 8 ай бұрын
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.
@ShaneWelcher
@ShaneWelcher 7 ай бұрын
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.
@TimWilborne
@TimWilborne 7 ай бұрын
Thanks for sharing!
@MegaHawg
@MegaHawg 8 ай бұрын
You just saved me hours of troubleshooting! I will be JMPing in my current program for extruder controls Monday morning. Thanks Tim!!!!
@TimWilborne
@TimWilborne 8 ай бұрын
Glad it helped!
@rodrigoruiz9710
@rodrigoruiz9710 8 ай бұрын
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
@TimWilborne
@TimWilborne 8 ай бұрын
You're very welcome!
@jeremymcdonald5281
@jeremymcdonald5281 8 ай бұрын
Simply the best instructor. Thank you Tim. Linked in brought me here. 🎉
@TimWilborne
@TimWilborne 8 ай бұрын
Awesome, thank you!
@CryptoGlific-fw8of
@CryptoGlific-fw8of 6 ай бұрын
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 6 ай бұрын
Oh no, you didn't say the last rung wins...kzfaq.infoUVNxBrErl9c?feature=share
@tysonhimself
@tysonhimself 8 ай бұрын
i’m glad you showed this. definitely cleared up a misunderstanding for me
@TimWilborne
@TimWilborne 8 ай бұрын
Glad it was helpful!
@alecnab2340
@alecnab2340 8 ай бұрын
One of the best videos from Tim. Great presentation.
@TimWilborne
@TimWilborne 8 ай бұрын
Thank you, you made my evening 😁
@kenyalaster
@kenyalaster 8 ай бұрын
That's Fire, I love it thanks, Tim
@TimWilborne
@TimWilborne 8 ай бұрын
Glad you like it!
@PowerHaus304
@PowerHaus304 2 ай бұрын
If I ever come back to the states I am buying you a beer.
@TimWilborne
@TimWilborne 2 ай бұрын
🍻
@seeigecannon
@seeigecannon 8 ай бұрын
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 8 ай бұрын
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
@akupadhyayula
@akupadhyayula 8 ай бұрын
Love these tips, learned something new
@TimWilborne
@TimWilborne 8 ай бұрын
Glad it was helpful!
@nddwind
@nddwind 8 ай бұрын
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 8 ай бұрын
I wouldn't do this either but enough people think it disabled the rung that it was worth talking about
@nddwind
@nddwind 8 ай бұрын
@@TimWilborne Ah I gotcha. Yeah maybe it helps people think about it differently.
@jfalbo
@jfalbo 8 ай бұрын
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 8 ай бұрын
No, that's exactly what I explained DIDN'T work in this video.
@disun4152
@disun4152 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
Maybe I'll explain it in the next live update 😁
@cccook2005
@cccook2005 8 ай бұрын
Basic Ladder Logic Rule. Never use the output instruction more than once in a program.
@TimWilborne
@TimWilborne 8 ай бұрын
I agree but in these cases people were discussing temporarily testing new code on existing outputs
@gregbrand420
@gregbrand420 2 ай бұрын
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 2 ай бұрын
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. kzfaq.infoUeI8s4oc758?si=urWQYXqYdgkTKej2
@BTech5
@BTech5 Ай бұрын
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 Ай бұрын
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 Ай бұрын
@@TimWilborne Thanks and keep up the good work love your videos man
@TimWilborne
@TimWilborne Ай бұрын
You are welcome.
@orlineuceda38
@orlineuceda38 6 ай бұрын
Is it possible to add a toggle bit that can turn on and off the JMP instruction?
@TimWilborne
@TimWilborne 6 ай бұрын
Yes. Also here's a more detailed video about editing that may help kzfaq.infoqLXBDobuA2U?si=wftM6qDZid20tqw7
@user-hf1wj8bl9x
@user-hf1wj8bl9x 3 ай бұрын
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 3 ай бұрын
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.
@user-hf1wj8bl9x
@user-hf1wj8bl9x 3 ай бұрын
@@TimWilborne ok I will stay tuned for that video for implicit message. Now I understand that MSG instruction is explicit.
@willpollock9349
@willpollock9349 4 ай бұрын
Why not just stick a 'EQU 1 0' or a 'CMP 1=0' in the rung?
@TimWilborne
@TimWilborne 4 ай бұрын
You could but at first glance, I think the AFI would be clearer. Plus not all can use a constant in Source A
Scan Cycle of Micro800 PLC using Connected Components Workbench
15:59
DIFFERENCES IN Ladder Logic and Function Block Diagrams
17:55
Tim Wilborne
Рет қаралды 13 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 29 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 50 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
Produced and Consumed Tags in Studio 5000
10:13
Tim Wilborne
Рет қаралды 7 М.
PLC Programming Riddle.  How does the ONS work?
24:08
Tim Wilborne
Рет қаралды 1,7 М.
PLC Allen-Bradley RSLogix 5000 - Produced and Consumed Tags
5:23
Automation Consulting, LLC
Рет қаралды 4,1 М.
Indirect Addressing in Studio 5000 to Store and Retrieve Data
20:02
Studio 5000 Data Types.  BOOL, INT, DINT, and REAL?
12:56
Tim Wilborne
Рет қаралды 19 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 25 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,8 МЛН
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН