passwordg ,well i guse paully left try this: http://www.plctalk.net/qanda/showthread.php?t=65861
Just browsing the threads this evening so first let me warn, I didn't read everyone's post in detail. This thread is way too out of control to help the OP at this point but I just wanted to try to make a point if Pauly, Peter, and a few others that aren't just trying to post static to increase their post count and might still be listening.You are correct, using an OTE in multiple rungs doesn't work as the last OTE which is scanned by the PLC wins!
but I just wanted to try to make a point if Pauly, Peter, and a few others that aren't just trying to post static to increase their post count and might still be listening.
TW, you assume too much.I will help you understand this concept.
Is it ok to have one output latch and several output unlatches for the same address in multiple routines in a program ?
Or is it considered risky or bad programming ?
I replied:I know it doesn't give an error, but I seem to be having problems and wondering if this might be the reason.
I did not state that I did not understand OTE.I.M.O. no its not ok ,just bad practice, not that it wont work.
explains why you are confused about it, SteveI didn't read everyone's post in detail
Paully, I assume that you meant OTL instead of OTU. Who cares if the OTUs are true?Therefore you would ensure that at some point, every OTU is returned to a false state.
Just browsing the threads this evening so first let me warn, I didn't read everyone's post in detail. This thread is way too out of control to help the OP at this point but I just wanted to try to make a point if Pauly, Peter, and a few others that aren't just trying to post static to increase their post count and might still be listening.
This statement really stuck out to me, mainly because I'll be teaching on this very thing tomorrow to my students. Technically the evaluation of the instructions in the rung preceding the last OTE encountered during a PLC scan will be evaluated for a true or false condition and the OTE instruction will act accordingly, but to say "the last OTE which is scanned by the PLC wins!" is a little bit misleading.
Ron does an excellent job of showing the pitfalls of this statement in the following video.
http://ronbeaufort.com/youtube_lesson_10.htm
passwordg, if you happen to still be following this thread, watch the video carefully and understand the step by step analysis. You can use this same analysis to truly understand and evaluate the conditions of your multiple OTLs and OTUs and correctly predict their outcome or figure out why their outcome is not always predictable.
If you learn to understand and use this method then you can use 1000 OTLs, OTUs, and even OTUs addressing the same bit in a program. Now I didn't say I recommended it, but even that recommendation would be better than making a rule that limiting the number of output instructions on a bit just because you are unsure of how the program code is affecting it.
Daba, what if the code APPEARS to do the job, but the programmer cannot see where the fatal flaw is going to keep it from working?In a nutshell, there are no hard and fast "rules" as such, but there's a lot of emotion in this field, but IMHO if the code does the job, then it is correct !
Daba, what if the code APPEARS to do the job, but the programmer cannot see where the fatal flaw is going to keep it from working?
Here is an example. Look at James's last program (FIFO SAMPLE2) and see if YOU think it does what he stated was the original purpose. Poor programming methods still can result in a non-working program.
http://www.plctalk.net/qanda/showthread.php?t=65565&page=13