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
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
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!
@@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
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.
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.
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
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
Great to hear!
Thanks! this helped me understand a little bit more than i did before hand
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
Glad it helped!
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!
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.👍👍
Glad you like it, thanks for watching!
Tim, is there is a way to generate a random numbers from 1-4 so we can do this problem backwards
Yes, you can make one that at least appears random enough for human eyes :)
@@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
How important are subroutines? I see them in my plants program. But dont understand why a program would use them.
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.
Great video and great explanation.
Thank you for you job! 💯
...
Just curious, what to do after 101 pres button?
Great video!
Thank you
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.
You would replace that with a 2 dimensional array. Here is a video in that.
ua-cam.com/video/Rl9nT029Zsc/v-deo.html
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
Great Rodolfo, it will work the same in CCW.
this was beautiful!!!!
Thanks!
Very nice!
Thanks!
Hello Tim, thank you for posting awesome videos.
You are very welcome!
thank you , that was great
Glad you enjoyed it!
verry good !
Thank you.
Awesome
Thanks Erieg!
Cannot remember this simple thing: @1:45 "lets go ahead" what are you clicking on to make comment?
Control D
Careful, if you press the buttons 101 times in a row you'll fault the controller ;)
And have sore fingers 😜
what would be the solution to not fault it?
@@aaw7410 you would add an LES instruction that only increments the index if the current number is less than the array size
FAL...
Are you wanting to see videos on the FAL, I think there are a few but class this week so short on time.