Hay Mr.Mom thanks for slowing down the tutorial. I didn’t have to use the reverse on the video this time. Great tutorial.
@TimWilborne5 жыл бұрын
Thanks. There hasn't been much time to slow up this week!
@zacharyrandolph-laberge31554 жыл бұрын
This was so helpful! Thank you for saving me from a certain headache
@TimWilborne4 жыл бұрын
Glad I could help. Thanks for watching!
@macrosspuma233 жыл бұрын
i used your code to implement a cheap "effect hall" flow meter and its working very well :D
@TimWilborne3 жыл бұрын
Good to hear Enrique!
@oscarramirezhernandez19072 жыл бұрын
Hi Tim, thank you so much for the video, perfect explanation. Greetings from Mexico. You have a new subscriber
@TimWilborne2 жыл бұрын
Thanks for the sub!
@cesarvallejos65564 жыл бұрын
Gracias Tim! Muy útil el tutorial. Saludos desde Argentina.
@TimWilborne4 жыл бұрын
De nada Cesar!
@sayedhasanalmusawi29963 жыл бұрын
Great job , you just found how many revolutions per second to convert it into rpm (revolutions per minute) multiply it by 60 to convert from sec to min. In my experience 100 ms is more then enough to give you accurate value of rpm : just multiply it by 10 then by 60 . Thanks
@controlsgirl2 жыл бұрын
Why do you have to multiply it by 10 first? Wait..the multiplier is for the sampling rate. 100ms x 10 = 1 second (Hz)
@supportATS3 жыл бұрын
Great Video, but I have a question. If I am using the HSC for flow of a liquid do I need to regularly reset the ACC value to prevent an overflow error as the flow is always in the one direction?
@TimWilborne3 жыл бұрын
Hi Kevin, after 2,147,483,647 counts, it will reach it's limit. I don't know the frequency of your counts, but you should have some measure in there to eventually deal with the rollover, even if it is 10 or so years down the road.
@controlsgirl2 жыл бұрын
Great tutorial! Is there ever an accuracy concern due to putting this logic in a program that is not time determinant? Or would it be so small it becomes a moot point?
@TimWilborne2 жыл бұрын
There could be. It would have roughly the scan time x2 variation in the sample rate.
@qzorn44403 жыл бұрын
this is a great plc learning video, wished i had it when i was learning AB-PLC stuff? i was really searching for the ultra3000 servo E23 error fault (The internal filter protecting the drive from over heating has tripped)? it seems to be a common problem with some silly check accelerate/ decelerate settings on machine that have been working for several years that way. Tim, how do you troubleshoot these kind of problems? thanks a lot..:)
@TimWilborne3 жыл бұрын
Typically that means the motor is under too much load for the set accel and decel. Might see if increasing these values would affect your process.
@ronaldkrisher36854 жыл бұрын
Hi Tim. Just recently discovered you and subscribed. Outstanding channel! I do have a question on this vid. You don't mention counter wrap-around. Is it reasonable to reset the counter to 0 instead of doing the subtraction? That is, on your 1 sec timeout, save the value and reset?
@TimWilborne4 жыл бұрын
If you need to count to a very large number then the roll over is something you'll have to handle. The subtraction and 1 second timer is to take the change over one second and determine the speed that the counter is running at.
@REXONCROSS4 жыл бұрын
Thanks a lot . could you please do a video to show how to use interrupts?
@TimWilborne4 жыл бұрын
How to use the EII might make a good one, I'll put it on the list.
@REXONCROSS4 жыл бұрын
@@TimWilborne thanks a lot tim. You are a life saver for a lot of us begginers.
@TimWilborne4 жыл бұрын
@@REXONCROSS You are welcome Joel!
@teddeebayre34333 жыл бұрын
What about using the quadrature on the encoder and get the plc to indicate what direction it's going. I imagine you would use two counters,(channel A & B) but whichever one fires first will tell the direction. How can you store the one that fires first and have one bit go to 1 for CW and another go to 1 for CCW. Example 00 not moving 01 for CW and 10 for CCW
@TimWilborne3 жыл бұрын
No need to. Look to see if your rate calculation is positive or negative. You cannot track the pulsed of a high speed counter in ladder logic.
@ryandamico96732 жыл бұрын
Hi Tim, maybe I missed it but I am trying to calculate hz form the rate that the high speed counter is giving. how do I do this? thank you!!
@cesarcamargodiaz85782 жыл бұрын
Hi Tim, i have any questions: The register -- S-1/15, whats do it do ¿¿¿ i dont understant, please hep me and explain me, thank you
@TimWilborne2 жыл бұрын
It will be true for the first scan when the PLC transitions to run mode either via a power cycle, switching the keyswitch from program to run, or switching from your PC from REM PROG to REM RUN.
@TIUSCO004 жыл бұрын
Gracias me ha sido de mucha ayuda
@TimWilborne4 жыл бұрын
¡De nada!
@sidharthvattakassery Жыл бұрын
Hi Tim, I have a doubt. You are moving the value of L9:0 to L9:1 and subtracting them during the same condition. So wouldn't the value in L9:0 and L9:1 be the same while subtracting
@TimWilborne Жыл бұрын
No, here's where order for operation becomes very important. The subtract is before the move that makes L9:0 and L9:1 the same.
@anthonyrios40032 жыл бұрын
We always get an error message saying it does not count and stop the motion right to left
@adi12573 жыл бұрын
sir, it is nice video...i have question....how to calculate pulse from flowrate ?
@TimWilborne3 жыл бұрын
Each pulse will be a certain amount of fluid. So you multiply pulses by that value which will usually be called the K factor and will be very specific to your flow meter. Usually there will be a chart that includes pipe size, material, connection type, etc.
@adi12573 жыл бұрын
@@TimWilborne how to calculate that K factor ?
@damiand984 жыл бұрын
Hi Tim. Would you consider making a similar video for configuring high speed counters for compactlogix plc's?
@TimWilborne4 жыл бұрын
It's coming soon Damian. Thanks for watching!
@puneetkejriwal33814 жыл бұрын
Hi Tim. Just came across your channel. I am working on a small project of mine which involves servo motor control via plc for a machine. eg. we take a time base of 1 minute. Now if the operator sets 60 shots per min, the servo needs to make the predefined number of rotations 60 times a min. my application, the servo needs to pull paper. now the number of rotations would be defined by the length of paper fed by the operator. and if the machine speed is 60 per min, the same paper length needs to be drawn 60 times, if 120 shots then 120 times. Now I'd like to program it in such a fashion, that the servo motor acceleration, deceleration and running speed is altered according to the speed fed in the machine. Do you maybe already have a tutorial similar to this or could you guide me maybe over emails or something?
@TimWilborne4 жыл бұрын
Hi Punett. I would recommend posting your question over at www.plctalk.net/qanda/forumdisplay.php?f=2
@akupadhyayula2 жыл бұрын
Tim - great video, One question I have is how to calculate the duration a particular machine was down. I was thinking of capturing system time at the stop and restart and take the difference. But then I got tipped over on how to keep track of total amount of downtime. I would appreciate your suggestions
@TimWilborne2 жыл бұрын
I have a video coming on this.
@juderobise27244 жыл бұрын
Whenever that HSC counter reset, is there any possibility to become source A = 0, source B = 999999, then difference ( which is the frequency) could be a wrong huge value? (above mentioned values are just for the example) Thank you!
@TimWilborne4 жыл бұрын
Hi Jude. It will "roll over" from the highest positive value to the lowest negative value. I need to do on handling this sometime.
@juanclaudio58794 жыл бұрын
Muy buen video, habría la Posibilidad de compartir el archivo de configuración
@TimWilborne4 жыл бұрын
Hi Juan. Here you go. www.theautomationstore.com/rslogix-500-training-allen-bradley-micrologix-high-speed-counter-rslogix-500-function-file-configuration-for-an-encoder/
@stanleypolanco48874 жыл бұрын
Regards Tim Where can I buy the license for rslogix 500?
@TimWilborne4 жыл бұрын
Hi Stanley. Your Rockwell Automation distributor will be able to give you the best price. It is important that you understand which version you need before purchasing. You can learn more at the link below. www.theautomationstore.com/rslogix-500-training-where-can-i-download-rslogix-500-and-what-is-the-price-difference-of-each-version/
@colemillican88874 жыл бұрын
Someone please I'm Begging make a video for a micro850 HSC Totalizer with a flow meter! I'm so stuck and no one has made such video.
@TimWilborne4 жыл бұрын
Here you go Cole twcontrols.com/lessons/allen-bradley-micro800-hsc-high-speed-counter-configuration-for-encoders-in-ccw