Calculate the Rate, Speed, or RPM on High Speed Counter in RsLogix 500

Sdílet
Vložit
  • čas přidán 24. 09. 2019
  • The Allen Bradley Micrologix High Speed Counter gives you the accumulated number of pulses or encoder position but many times you need to know the speed or how fast the position is changing.
    Don't forget to like and comment on our videos and subscribe to our channel.
    czcams.com/users/TimWilbo...
    Items used in this video:
    Encoder Simulator plctools.com/servo-encoder-si...
    PLC Trainer twcontrols.com/plc-trainers
  • Věda a technologie

Komentáře • 54

  • @mumbles1justin
    @mumbles1justin Před 4 lety +3

    Hay Mr.Mom thanks for slowing down the tutorial. I didn’t have to use the reverse on the video this time. Great tutorial.

    • @TimWilborne
      @TimWilborne  Před 4 lety

      Thanks. There hasn't been much time to slow up this week!

  • @zacharyrandolph-laberge3155

    This was so helpful! Thank you for saving me from a certain headache

    • @TimWilborne
      @TimWilborne  Před 4 lety

      Glad I could help. Thanks for watching!

  • @macrosspuma23
    @macrosspuma23 Před 3 lety +1

    i used your code to implement a cheap "effect hall" flow meter and its working very well :D

  • @cesarvallejos6556
    @cesarvallejos6556 Před 4 lety +1

    Gracias Tim! Muy útil el tutorial. Saludos desde Argentina.

  • @oscarramirezhernandez1907

    Hi Tim, thank you so much for the video, perfect explanation. Greetings from Mexico. You have a new subscriber

  • @TIUSCO00
    @TIUSCO00 Před 4 lety +1

    Gracias me ha sido de mucha ayuda

  • @ronaldkrisher3685
    @ronaldkrisher3685 Před 4 lety +1

    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?

    • @TimWilborne
      @TimWilborne  Před 4 lety

      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.

  • @ryandamico9673
    @ryandamico9673 Před rokem +1

    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!!

  • @qzorn4440
    @qzorn4440 Před 3 lety +1

    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..:)

    • @TimWilborne
      @TimWilborne  Před 3 lety +1

      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.

  • @supportATS
    @supportATS Před 3 lety +2

    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?

    • @TimWilborne
      @TimWilborne  Před 3 lety +1

      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.

  • @controlsgirl
    @controlsgirl Před 2 lety +1

    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?

    • @TimWilborne
      @TimWilborne  Před 2 lety +1

      There could be. It would have roughly the scan time x2 variation in the sample rate.

  • @sayedhasanalmusawi2996
    @sayedhasanalmusawi2996 Před 3 lety +2

    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

    • @controlsgirl
      @controlsgirl Před 2 lety

      Why do you have to multiply it by 10 first? Wait..the multiplier is for the sampling rate. 100ms x 10 = 1 second (Hz)

  • @damiand98
    @damiand98 Před 4 lety +1

    Hi Tim. Would you consider making a similar video for configuring high speed counters for compactlogix plc's?

    • @TimWilborne
      @TimWilborne  Před 4 lety

      It's coming soon Damian. Thanks for watching!

  • @akupadhyayula
    @akupadhyayula Před 2 lety

    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

  • @puneetkejriwal3381
    @puneetkejriwal3381 Před 4 lety +1

    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?

    • @TimWilborne
      @TimWilborne  Před 4 lety

      Hi Punett. I would recommend posting your question over at www.plctalk.net/qanda/forumdisplay.php?f=2

  • @anthonyrios4003
    @anthonyrios4003 Před rokem +1

    We always get an error message saying it does not count and stop the motion right to left

  • @juderobise2724
    @juderobise2724 Před 3 lety +1

    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!

    • @TimWilborne
      @TimWilborne  Před 3 lety +1

      Hi Jude. It will "roll over" from the highest positive value to the lowest negative value. I need to do on handling this sometime.

  • @REXONCROSS
    @REXONCROSS Před 4 lety +1

    Thanks a lot . could you please do a video to show how to use interrupts?

    • @TimWilborne
      @TimWilborne  Před 4 lety

      How to use the EII might make a good one, I'll put it on the list.

    • @REXONCROSS
      @REXONCROSS Před 4 lety +1

      @@TimWilborne thanks a lot tim. You are a life saver for a lot of us begginers.

    • @TimWilborne
      @TimWilborne  Před 4 lety

      @@REXONCROSS You are welcome Joel!

  • @teddeebayre3433
    @teddeebayre3433 Před 3 lety +1

    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

    • @TimWilborne
      @TimWilborne  Před 3 lety

      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.

  • @stanleypolanco4887
    @stanleypolanco4887 Před 4 lety +1

    Regards Tim
    Where can I buy the license for rslogix 500?

    • @TimWilborne
      @TimWilborne  Před 4 lety

      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/

  • @sidharthvattakassery
    @sidharthvattakassery Před rokem +1

    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
      @TimWilborne  Před rokem +1

      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.

  • @juanclaudio5879
    @juanclaudio5879 Před 4 lety +1

    Muy buen video, habría la
    Posibilidad de compartir el archivo de configuración

    • @TimWilborne
      @TimWilborne  Před 4 lety

      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/

  • @adi1257
    @adi1257 Před 3 lety +1

    sir, it is nice video...i have question....how to calculate pulse from flowrate ?

    • @TimWilborne
      @TimWilborne  Před 3 lety

      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.

    • @adi1257
      @adi1257 Před 3 lety

      @@TimWilborne how to calculate that K factor ?

  • @cesarcamargodiaz8578
    @cesarcamargodiaz8578 Před rokem +1

    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

    • @TimWilborne
      @TimWilborne  Před rokem +1

      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.

  • @colemillican8887
    @colemillican8887 Před 3 lety +1

    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.

    • @TimWilborne
      @TimWilborne  Před 3 lety +1

      Here you go Cole
      twcontrols.com/lessons/allen-bradley-micro800-hsc-high-speed-counter-configuration-for-encoders-in-ccw

  • @rmkbrothers8698
    @rmkbrothers8698 Před 2 lety +1

    Pls send this logic and wiring diagram