PLC Timer Programming for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ค. 2024
  • ▶ C'mon over to realpars.com where you can learn PLC programming faster and easier than you ever thought possible!
    =============================
    ▶ Check out the full blog post over at
    realpars.com/plc-timer
    =============================
    ⌚Timestamps:
    00:00 - Intro
    00:40 - Types of PLC timers
    00:49 - PLC timer values
    02:30 - PLC timer examples
    02:53 - On-delay timer
    05:24 - Off-delay timer
    07:15 - Retentive on-delay timer
    =============================
    In this video, we will be talking about PLC timers. We will explain what PLC timers are, how they work, the different types of timers, and give some examples of how they are used.
    PLC timers are internal PLC instructions that can be used to delay input and output signals in the PLC program.
    These timers operate like relay timers but you cannot hold a PLC timer in your hand and they do not need to be connected to wires to operate.
    There are three main types of PLC timers:
    - the on-delay timer,
    - the off-delay timer,
    - the retentive on-delay timer.
    All of these PLC timers have a timer file name, a preset value, an accumulated value, a timer enabled bit, a timer timing bit, and a timer done bit.
    - The timer file name is a PLC tag. This tag is where you can find the timer’s preset and accumulated values and the timer enabled, timing, and done bits.
    Some PLCs create the timer file name for you and other PLCs have you create the timer file name.
    For all of my timer examples, I will use the timer file name Timer1. I will also use a selector switch to enable and disable the timers.
    - The timer preset value is the number that shows the delay length of the timer. This number can be changed by just typing it in or you can have the PLC write a number into this value. This number does not change during the timer’s normal operation.
    - The timer accumulated value is the number that shows how long the timer has been timing. The timer accumulated value does not function the same on all of these timers.
    - The timer enabled bit will be on when the timer is enabled.
    - The timer timing bit will be on when the timer is timing.
    - The timer done bit does not function the same on all of these timers.
    I will be using Studio 5000, which is the PLC programming software for Allen-Bradley ControlLogix PLCs.
    But the things you will learn here in these examples can be applied to any other PLC software. Because the overall timer functions are pretty much the same for any other PLC brand.
    Let’s start by placing a new on-delay timer instruction on a PLC rung with a selector switch input.
    Type the timer file name Timer1.
    Next, enter the timer preset so that it equals ten seconds.
    Not all PLC timers use the same time base, some have time bases that cannot be changed while others will give you multiple time base options.
    I will discuss what happens to the PLC on-delay timer, off-delay timer, and retentive on-delay timer when the selector switch gets turned on and off.
    Setting up an off-delay timer is the same as an on-delay timer.
    Retentive on-delay timers are a lot like on-delay timers. The only major difference with retentive on-delay timers is how the timer accumulated value acts when you turn the selector switch on and off and that it needs a reset bit.
    Timer applications:
    1) On-delay timer
    On-delay timers are used a lot in PLC programs and in many different ways. For example, an on-delay timer can be used on a conveyor’s start button.
    The timer could be set up so that the start button would need to be pushed and held for five seconds before the conveyor would start.
    Another on-delay timer could also be set up to sound a conveyor start-up warning horn and light.
    2) Off-delay timer
    Off-delay timers are used when you need something to stay running longer than everything else. For example, cooling fans and pumps might continue to run after a machine pauses from doing work.
    3) Retentive on-delay timer
    Retentive on-delay timers can be used to track the runtime of equipment.
    They can be set up to trigger an indicator light to let someone know the equipment has run long enough and requires maintenance to inspect and clean it.
    =============================
    Missed our most recent videos? Watch them here:
    realpars.com/factory-acceptan...
    realpars.com/hmi-display
    realpars.com/electrical-groun...
    =============================
    To stay up to date with our last videos, make sure to subscribe to this TH-cam channel:
    bit.ly/realpars
    =============================
    TWEET THIS VIDEO ctt.ac/vced7
    =============================
    Follow us on Facebook: / therealpars
    Follow us on Twitter: / realpars
    Follow us on LinkedIn / realpars
    Follow us on Instagram / realparsdotcom
    #RealPars #PLCTimer #PLCProgramming

ความคิดเห็น • 89

  • @mychannel8809
    @mychannel8809 ปีที่แล้ว +8

    I seriously can’t thank you enough for this video, I’ve really been struggling to understand the timers and counters and your videos break them down so freaking well!!

    • @realpars
      @realpars  ปีที่แล้ว +1

      You're very welcome! That's great to hear, if anything is unclear, please do not hesitate to contact us at any time.

  • @iliapopovich
    @iliapopovich 2 ปีที่แล้ว +4

    Best tutorial for such a simple function. By the way, if you have a video for every ladder logic function, there's no need to lose time with courses, you're explaining way better.

    • @realpars
      @realpars  2 ปีที่แล้ว +2

      Great suggestion! Thanks for your kind support and feedback!

  • @Hamza_Algmaty_1996
    @Hamza_Algmaty_1996 3 ปีที่แล้ว +2

    Thank you RealPars team!
    Please consider making videos explaining automation in electrical substations.

    • @realpars
      @realpars  3 ปีที่แล้ว +2

      Hi Hamza!
      Thanks for your comment and your suggestion. I will pass this on to our course developers!
      Thanks for sharing and happy learning!

  • @jothain
    @jothain 3 ปีที่แล้ว +1

    One good simple example of using retentive timer would be automatic lubrication interval for ie. conveyor that starts and stops frequently. I used retentive timer just while ago to accomplish even lubrication times based on actual conveyor runtime. This wouldn't work with timer on/off functions, because counting would likely reset at wrong times resulting possibly in no lubrication at all.

  • @dilshathahamed7446
    @dilshathahamed7446 3 ปีที่แล้ว

    ❣️well explained... Need more related videos

  • @kiranchoudhari4717
    @kiranchoudhari4717 3 ปีที่แล้ว +1

    Thanks realpar for choosing separate topic of timers thanks a lot,,

    • @realpars
      @realpars  3 ปีที่แล้ว +1

      You are most welcome, Kiran!

  • @aminokamad1681
    @aminokamad1681 3 ปีที่แล้ว +1

    Awesome video, more example about three types of timer so that we can understand fully the function of timers

    • @realpars
      @realpars  3 ปีที่แล้ว

      Glad to hear that, Amin! I will go ahead and pass that on to our course developers, thanks for your feedback!

  • @MALEKBAFADHLAKE
    @MALEKBAFADHLAKE ปีที่แล้ว

    Great video. Clear and understandable explanation with a good applications.
    Much appreciated

    • @realpars
      @realpars  ปีที่แล้ว

      Glad you enjoyed it!

  • @jjdg666
    @jjdg666 3 ปีที่แล้ว

    Excelente video, muy clara la explicación

    • @realpars
      @realpars  3 ปีที่แล้ว

      Gracias, Jesus!

  • @IngDzib
    @IngDzib 3 ปีที่แล้ว +1

    Thanks Realpars!!!

    • @realpars
      @realpars  3 ปีที่แล้ว

      You're very welcome, Wilberth

  • @bakytbekizgaliyev9850
    @bakytbekizgaliyev9850 3 ปีที่แล้ว

    Thank you guys
    Great job👍👍👍

    • @realpars
      @realpars  3 ปีที่แล้ว

      Our pleasure!

  • @razerimperator231
    @razerimperator231 3 ปีที่แล้ว

    Super!

  • @robertosalazarjr1205
    @robertosalazarjr1205 3 ปีที่แล้ว +1

    Wow this looks so easy thanks

    • @realpars
      @realpars  3 ปีที่แล้ว

      Glad to hear that, Roberto!

  • @prajwalchamute
    @prajwalchamute 3 ปีที่แล้ว +1

    I did a paid internship in which they taught us using RX logix 500 to manipulate timer and delays.

  • @mdasaduzzaman1750
    @mdasaduzzaman1750 ปีที่แล้ว

    sir ,lot of thanks for concept of plc timer programing.

    • @realpars
      @realpars  ปีที่แล้ว

      You are most welcome!

  • @ohmvoltsintegratedservices7607
    @ohmvoltsintegratedservices7607 ปีที่แล้ว

    Great.
    To build an open & close gate automation with pushbutton.
    Kindly advise the ladder diagram for limits timers.

  • @zanencube2714
    @zanencube2714 ปีที่แล้ว

    Best tutorial ever!

    • @realpars
      @realpars  ปีที่แล้ว

      Thank you very much!

  • @AnishKumar-nu1ru
    @AnishKumar-nu1ru ปีที่แล้ว

    Hey sir Anish here a beginner in automation field...big thank for your helpful videos....keep making videos in Allen Bradley plc software.

    • @realpars
      @realpars  ปีที่แล้ว

      Thanks for your support, Anish!

  • @MedoRezk
    @MedoRezk 3 ปีที่แล้ว

    Thanks Realpars

    • @realpars
      @realpars  3 ปีที่แล้ว +1

      You're very welcome!

  • @michaelzajac5284
    @michaelzajac5284 9 หลายเดือนก่อน

    This is fascinating!

    • @realpars
      @realpars  9 หลายเดือนก่อน

      Glad to hear that! Thank you very much!

  • @KevinNguyen-tw5ml
    @KevinNguyen-tw5ml ปีที่แล้ว

    Thank you very much!

    • @realpars
      @realpars  ปีที่แล้ว

      You're very welcome, Kevin! Happy learning

    • @KevinNguyen-tw5ml
      @KevinNguyen-tw5ml ปีที่แล้ว

      @@realpars Yes 🥰

  • @nagarasud1441
    @nagarasud1441 2 ปีที่แล้ว

    Good 👍

  • @mdasaduzzaman1750
    @mdasaduzzaman1750 ปีที่แล้ว

    sir ,lot of thanks for conceot of plc timer programing.

    • @realpars
      @realpars  ปีที่แล้ว

      You are most welcome!

  • @ckart772
    @ckart772 ปีที่แล้ว

    Very helpful ..
    Thankyou sir 🙏

    • @realpars
      @realpars  ปีที่แล้ว

      You're very welcome!

  • @stevenlee5755
    @stevenlee5755 2 ปีที่แล้ว

    thanks for sharing ,

    • @realpars
      @realpars  2 ปีที่แล้ว

      Our pleasure, Steven!

  • @garymatthews6309
    @garymatthews6309 ปีที่แล้ว

    awesome video thank you, definitely subscribing

    • @realpars
      @realpars  ปีที่แล้ว

      Awesome, thank you!

  • @ElectroPrints
    @ElectroPrints 2 ปีที่แล้ว

    great video!

    • @realpars
      @realpars  2 ปีที่แล้ว

      Glad you enjoyed it!

  • @matthewrenshaw
    @matthewrenshaw 3 ปีที่แล้ว +1

    Hi RealPars - great channel! A request, how about motor and feeder protection relays and differential protection relays explained?

    • @realpars
      @realpars  3 ปีที่แล้ว +2

      Thanks a lot, Matthew!
      Great topic suggestion, I will happily pass this on to our course developers.
      Thanks again and happy learning!

  • @lindadeke4485
    @lindadeke4485 4 หลายเดือนก่อน

    Well explanation❤❤❤❤❤

    • @realpars
      @realpars  4 หลายเดือนก่อน

      Thank you!

  • @tshimstshimangausa3061
    @tshimstshimangausa3061 3 ปีที่แล้ว

    Thank you so much. Please do more of these videos to help us. I'm taking plc classes and I realized that the teacher is not giving more details. Please Please post and post
    I WOULD LIKE TO KNOW HOW TO CREATE TAGS

    • @realpars
      @realpars  3 ปีที่แล้ว

      Thanks for your feedback! I will happily go ahead and pass this on to our course developers. Happy learning!

  • @venkatesan.l247
    @venkatesan.l247 3 ปีที่แล้ว

    Awesome , Consider about Doing a video on analog programming

    • @realpars
      @realpars  3 ปีที่แล้ว

      Hey!
      Thanks for your comment and your suggestion. I will pass this on to our course developers!
      Thanks for sharing and happy learning!

  • @markorestism6109
    @markorestism6109 ปีที่แล้ว

    Thank you! Clear and easy to understand as usual. You are the best on TH-cam

    • @realpars
      @realpars  ปีที่แล้ว

      Thanks a million, Mark! We are very happy to hear that.

  • @shaikabdurahiman3501
    @shaikabdurahiman3501 3 ปีที่แล้ว +5

    Can you add more examples so that everybody understand well

    • @realpars
      @realpars  3 ปีที่แล้ว +3

      Hi Shaik,
      Thanks for your comment and feedback!
      I will make sure to pass that on to our course developers, for future video courses.
      Happy learning!

    • @shaikabdurahiman3501
      @shaikabdurahiman3501 3 ปีที่แล้ว +1

      @@realpars thanks lad

    • @roseelectronics4582
      @roseelectronics4582 3 ปีที่แล้ว

      Good suggestion. We need more examples. Thank you Realpars for the videos.

  • @yuvrajbalotiya1064
    @yuvrajbalotiya1064 3 ปีที่แล้ว +2

    Sir, can you explain timer with other instructions with example so we can understand how can I used timer in different application.

    • @realpars
      @realpars  3 ปีที่แล้ว +1

      Thanks for the feedback, Yuvraj! I will happily pass this on to our course developers.

  • @Subhas4u
    @Subhas4u 3 ปีที่แล้ว

    👍👌

  • @alexanderskusnov5119
    @alexanderskusnov5119 3 ปีที่แล้ว +1

    It would be better to show time charts for comparison.

  • @Ravinder764
    @Ravinder764 3 ปีที่แล้ว

    👍👍👍

  • @shaas1990.
    @shaas1990. ปีที่แล้ว

    Thank you ,i have aquestion .what if the switch is turned off before the end of preset time is the retentive timer accumulate go to zero

    • @realpars
      @realpars  ปีที่แล้ว

      No, the accumulated time will remain at its last value. If the switch is turned back on, the timer simply starts where it left off.

  • @francislorenzo3903
    @francislorenzo3903 2 ปีที่แล้ว

    Question. can i add a timer that is 12 hour long or more?
    i'll use to control a street light system. thank you in advance

    • @realpars
      @realpars  2 ปีที่แล้ว +1

      Depending on the PLC manufacturer, the maximum setpoint of an IEC timer is 10000 seconds (2h 46m 40s) as shown in the video. To go longer, set up a 3600-second timer, and when it times out, add 1 to an integer variable that counts hours, and then reset/restart the timer again.

  • @skpal9980
    @skpal9980 3 ปีที่แล้ว

    Sir make video on S7 Timer

    • @realpars
      @realpars  3 ปีที่แล้ว +1

      Hey!
      Thanks for your comment and your suggestion. I will pass this on to our course developers!
      Thanks for sharing and happy learning!

  • @NomadUrpagi
    @NomadUrpagi 3 ปีที่แล้ว +3

    I always get confused when the reverse operation logic gets involved like with the second timer.

    • @jothain
      @jothain 3 ปีที่แล้ว

      I struggled a bit too in the beginning. Then I realized that NOT operand is very handy in many timer applications to switch output(s) into different state. Some logics such as even Siemens logo have handy combined on/off timers. Also Logo's programming style was spot on for me to visualize how things affect each other. It helped tremendously to understand what happens with each style of timers. It's documentation is also very good imo.

  • @AbdullahAhmed-vj2vi
    @AbdullahAhmed-vj2vi 3 ปีที่แล้ว

    Do you have a course about Allen Bradley's

    • @realpars
      @realpars  3 ปีที่แล้ว +1

      Hi Abdullah,
      Thanks for your comment!
      Sure, although we mostly focus our course videos on Siemens, we do have a couple of course videos on Allen Bradley. We are planning to add more courses to our Allen Bradley section in our course library, but we do not have any of those courses scheduled yet. Feel free to have a browse through our course library to see which topics we cover at the moment. bit.ly/30ZrxWq

  • @fanaticamit
    @fanaticamit 3 ปีที่แล้ว

    Do you have any courses/resources on motion control programming?

    • @realpars
      @realpars  3 ปีที่แล้ว

      We have a few TH-cam videos on motion control (th-cam.com/play/PLln3BHg93SQ9CxFxL9L1ZLorPhFjFuvFN.html).

  • @tamaramsachi5230
    @tamaramsachi5230 6 หลายเดือนก่อน

    What IDE are you using?

    • @realpars
      @realpars  6 หลายเดือนก่อน

      Thank you for your question. This video discussed using the hardware and software related to AB RS Logic Micro Starter Lite.
      I hope this answers your question; if not, please let us know.
      Happy learning!

  • @ketanjadhav1087
    @ketanjadhav1087 2 ปีที่แล้ว

    👍

  • @shivamjoshi9819
    @shivamjoshi9819 ปีที่แล้ว

    What happen,when RTO is counting time and timer reset command triggered ?

    • @realpars
      @realpars  ปีที่แล้ว

      The RTO timer resets. A reset command will always reset the timer when activated. If the input logic to the RTO is still true, the timer will keep timing, but from zero.

  • @askilash7855
    @askilash7855 ปีที่แล้ว

    I want to learn Plc and DCS system like siemens PCS 7 software if anybody kmow this pls teach me

    • @realpars
      @realpars  ปีที่แล้ว

      Hi there,
      Thanks for your comment, and great to hear your enthusiasm!
      In that case, our course library would be a great option for you. Our course library is filled with over 500+ courses, covering a variety of topics for automation engineers. Including a start-to-finish course on PLC Programming.
      Feel free to have a look around learn.realpars.com/collections
      Additionally, you will have access to our Technical Team - consisting of high-ranking engineers with a lifetime of experience - who are here to help you out with any questions you might have along the way! 

      Hope this helps!

  • @parvizrahimli200
    @parvizrahimli200 ปีที่แล้ว

    PREPARE LESSONS FOR A HIGHER LEVEL
    PLEASE

    • @realpars
      @realpars  ปีที่แล้ว

      Thanks for your suggestion, Yahya! Happy learning.