What is the Difference between Ladder Logic and Function Block Diagrams?

Поділитися
Вставка
  • Опубліковано 27 січ 2019
  • ✅ 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/ladder-logic-vs-...
    =============================
    Today you will learn the difference between function block diagrams and ladder logic. Specifically what they are and when do we use them when programming PLCs.
    Most PLC manufacturers around the world still support ladder logic programming. However, some have been moving towards function block programming. Let’s take a look at some of the similarities and differences.
    Ladder logic is pretty well “the universal programming language” of PLCs.
    As I mentioned earlier it has been around for decades and is pretty well understood by most technicians and engineers alike.
    It is named Ladder Logic because it quite literally looks like a ladder.
    The vertical lines are referred to as the power rails. The horizontal lines that our programming bits are located on are rungs, just like on a ladder. It is read from top to bottom and left to right.
    Function block diagrams can essentially convert several lines of ladder logic into boxes.
    In the middle of the function block will be a symbol or text, labeling the function block. This will describe the actual function of the block.
    There can be one or several inputs and an output for each function block. Those function blocks can be inputs to other function blocks as well.
    Just like ladder logic, function block diagrams should be read left to right, top to bottom. In a sense, this format can make it easier for a technician troubleshooting a machine see what is happening to the machine.
    Let’s look at an “AND” function block first. If you are unfamiliar with “AND” Logic, it is actually pretty simple.
    Basically, you need at least two inputs energized to turn on or energize its output. I like to think of it as you need this input, and, that input to turn on the output.
    In ladder logic, it would look like a series circuit like this. In a function block diagram, the entire rung is replaced by this box or block.
    Many industrial machine use “AND” logic. A large metal Press Brake uses “AND” logic for its controls. The operator must push two buttons at the same time. This energizes the output of the “AND” logic. This allows the cylinders to be activated and bend the metal.
    Another common function used is the “OR” logic function block. This is like the opposite of “AND” logic.
    With an “OR” function block, you would energize this input, or, that input to energize the output. In ladder logic, it would look like a parallel circuit like this.
    Machines may use “OR” logic when there are more than one set of controls to operate the machine. Conveyor belts can utilize this programming. They will commonly have the “Start” and “Stop” buttons located near the conveyor. They can also have a start and stop button at another location in order to start the conveyor remotely.
    =============================
    Missed our most recent videos? Watch them here:
    realpars.com/sensor-calibration/
    realpars.com/ethernet/
    realpars.com/fieldbus/
    =============================
    To stay up to date with our last videos and more lessons, make sure to subscribe to this UA-cam channel:
    goo.gl/Y6DRiN
    =============================
    TWEET THIS VIDEO ctt.ac/_fxVJ
    =============================
    Like us on Facebook: / therealpars
    Follow us on Twitter: / realpars
    Follow us on LinkedIn / realpars
    #RealPars

КОМЕНТАРІ • 120

  • @ardentdfender4116
    @ardentdfender4116 5 років тому +10

    As a junior programmer having done almost a dozen major power plant plc upgrades and program rewrites with my Senoir Process and Automation Engineer, many upgrading from PLC5 to ControlLogix I call Function Block programing Magic Boxes. That’s me and what I call them as to me they work like magic and make a large program work seemingly like magic with the programing inside the block. While I personally have never programmed one, I’ve seen my coworker do so, but more so I understand the power and huge benefit of Block Programing. In many of our company upgrades we’ve done on power plant projects, Function Block programing has meant the difference to our programmer in being able to vastly minimize the amount of programming required, like programing for many pumps etc. He programs and perfects just one pump Function Block and then he duplicate that Block for pump instruction where ever he needs instruction for a pump logic. That cuts down on making mistakes in the instruction logic. If a mistake, he fixes just one time in the Function Block instruction and like magic every other pump with same problem is fixed. That saves an immense amount of programming time. That’s why I call them Magic boxes or Magic Blocks. But that’s just me.

  • @boudjellalmustapha9271
    @boudjellalmustapha9271 5 років тому +9

    Thank you RealPars for these amazing vidoes about PLC programming, thanks to your videos I learned a lot of things about PLC programming.

    • @realpars
      @realpars  5 років тому +1

      You are very welcome! I am very happy to hear that. Keep it up!

  • @benhurley280
    @benhurley280 3 роки тому +8

    You guys just make learning so much simpler! Thank you 😊

    • @realpars
      @realpars  3 роки тому +1

      That's amazing to hear, Ben! Thanks for sharing.

  • @melquiadesdelgadoramirez680
    @melquiadesdelgadoramirez680 5 років тому +3

    Really educative manner to explain differences between the two most used programming languages. Great job RealPars!

    • @realpars
      @realpars  5 років тому

      Thank you, Melquiades! That's great to hear!

  • @kurtdecena8681
    @kurtdecena8681 14 днів тому

    Watching one all programming laguange in PLC in your videos, it is easy to undedrstand. Thank you RealPars!

    • @realpars
      @realpars  13 днів тому

      Glad to hear that, Kurt! Thank you very much for sharing

  • @za1981zee
    @za1981zee 5 років тому

    Thank you so much, really happy to see your videos always

    • @realpars
      @realpars  5 років тому

      Great to hear! You are very welcome.

  • @Blades-fm6ck
    @Blades-fm6ck Рік тому

    Another great video from realpars, many thanks 👍

    • @realpars
      @realpars  Рік тому

      Thank you very much, great to hear that!

  • @rhythmandacoustics
    @rhythmandacoustics 5 років тому +12

    This video is super underrated, and also who the hell dislikes this!

    • @sytsewar
      @sytsewar 4 роки тому +1

      The Indian guy who does not like the accent

  • @thewrongbrothers7205
    @thewrongbrothers7205 2 роки тому

    Great work guys, thank you.

  • @hoodalialhajri
    @hoodalialhajri 5 років тому

    Simple and informative thanks

    • @realpars
      @realpars  5 років тому

      You are welcome! :)

  • @anthonybrown7964
    @anthonybrown7964 4 роки тому +6

    This is priceless.... i would love to see a more detailed video on how to read schematic diagrams... like what the symbols mean and how they all first together to create a 230v power wiring, or maybe a relay schematic for a flame scanner on a burner for instance... it can be very confusing for people :) I think your way of explaining would be really appreciated and informative :)

    • @realpars
      @realpars  4 роки тому +1

      Hi Anthony,
      Thanks for your comment! Great feedback, I will make sure to forward this to our creator team.
      Thanks a lot for sharing this with us!

    • @joew4202
      @joew4202 3 роки тому +1

      RealPars not hard. First learn all your symbols then work on learning logic

  • @rajivs385
    @rajivs385 4 роки тому

    Your videos are very helpful ..Thank you so much ♥️ God bless 😇

    • @realpars
      @realpars  4 роки тому

      What a great compliment! Thanks a lot! :))

  • @caden01691
    @caden01691 3 роки тому +1

    10/10 explanation of the and/or logic as well as function block vs ladder logic.

  • @asadiqbal87
    @asadiqbal87 4 роки тому

    your videos very helpfull and provide great knowledge

    • @realpars
      @realpars  4 роки тому

      Amazing to hear that, Asad! Thanks for sharing that with us.

  • @james77011
    @james77011 4 роки тому +2

    thanks for this video... now i see how AND and OR compare with PLCs and digital electronics..

    • @realpars
      @realpars  4 роки тому

      You are very welcome, James!

  • @aieautomation7512
    @aieautomation7512 5 років тому

    Nice information

  • @JorgeMartinez-lp3wc
    @JorgeMartinez-lp3wc 5 років тому

    excellent video, when you explain the difference between the other programming languages.
    for example a structured text instruction list.

    • @realpars
      @realpars  5 років тому

      Thank you, Jorge! Thanks for the suggestion, I will pass your request on to our creator team. Happy learning :)

  • @ishmaelkamara5395
    @ishmaelkamara5395 5 років тому

    Thank you so much,it very interesting.

    • @realpars
      @realpars  5 років тому

      You are very welcome!

  • @richmond4884
    @richmond4884 3 роки тому

    Very impormative video thank you very match godbless to you...

    • @realpars
      @realpars  3 роки тому

      Great to hear that, Richmond! Thanks for sharing.

  • @venkataavinashvunnam2478
    @venkataavinashvunnam2478 11 місяців тому

    Hi Guys Thank You for helping us with your Learning Videos. My Request is that if you guys could arrange all the Videos in a Proper Sequence in all the Playlists for better Clarity while going through each playlist.

    • @realpars
      @realpars  11 місяців тому +1

      Thank you very much for your feedback! I will go ahead and share this with the team.

  • @anupnandi3481
    @anupnandi3481 5 років тому

    Excellent

  • @DG_Fabrication
    @DG_Fabrication 10 місяців тому

    thank you this explained it perfect

    • @realpars
      @realpars  10 місяців тому

      Glad to hear that, and you're more than welcome!

  • @shashidharadas2075
    @shashidharadas2075 5 років тому

    please upload all video.
    It will be helpful for us.
    One who working in industries,get benifited.

    • @realpars
      @realpars  5 років тому

      Hi Shashidhara,
      Happy to hear that you are benefiting from our course videos, we upload new videos every week! :)
      Happy learning.

  • @braulioamador6514
    @braulioamador6514 5 років тому

    Thanks, very much!!!

    • @realpars
      @realpars  5 років тому

      You are very welcome!

  • @renegadeflower575
    @renegadeflower575 5 років тому +1

    Another great video from Realpars.
    But I now hear there is a move now towards Structural Control Language. Are you able to expand on that?

    • @realpars
      @realpars  5 років тому

      Thank you Renegade Flower! I will ask our creator team to elaborate on it. :) Happy learning!

  • @MatrixW.
    @MatrixW. 3 місяці тому

    Great vidio explain, thank you!

    • @realpars
      @realpars  3 місяці тому

      Glad you enjoyed it!

  • @fyazdian1214
    @fyazdian1214 6 місяців тому

    Brilliant intro thanks

    • @realpars
      @realpars  6 місяців тому

      Thank you very much!

  • @bac4998
    @bac4998 5 років тому

    Subscribed. Thanks

    • @realpars
      @realpars  5 років тому

      You are welcome!

  • @joshuajavier5158
    @joshuajavier5158 Рік тому

    Thanks for the video Do you have course which focuses on FBD and STRUCTURED TEXT programming in SIEMENS.. Thanks

  • @user-vi9jg6iz4x
    @user-vi9jg6iz4x 5 років тому

    Thank you so much.GOOD

    • @realpars
      @realpars  5 років тому

      You are very welcome!

  • @user-vy4iw4mu5r
    @user-vy4iw4mu5r 5 років тому

    Useful channel

  • @rifatuzzamanroni5283
    @rifatuzzamanroni5283 5 років тому +4

    Please make a video about communication PLC, HMI & VFD.

    • @realpars
      @realpars  5 років тому

      Hi there, thanks for the topic suggestion! I will pass it on to our creator team.

  • @_Iokanaan_Marusidze_
    @_Iokanaan_Marusidze_ 5 років тому

    Thanks !

    • @realpars
      @realpars  5 років тому

      You are welcome!

  • @derina.maleek9408
    @derina.maleek9408 5 років тому +1

    Thank you

    • @realpars
      @realpars  5 років тому

      You are welcome!

  • @mahmoudal-saad2825
    @mahmoudal-saad2825 4 роки тому

    Hello,
    Thanks a lot for these very important videos…
    Do you have any pdf"s summarizes the videos?
    Also do you offer training period.

    • @realpars
      @realpars  4 роки тому

      Hi Mahmoud,
      Thanks for your comment!
      We have a transcript of each video in the 'Description Box'.
      Regarding your question about our training period, we don't provide any offline training, but we have a course library full of PLC Programming courses.
      As a subscriber, you obtain full access to our Technical Team who will answer any questions you might have along your learning journey!
      You can always try our free course in PLC Hardware through the following link bit.ly/2XnnUrF
      If you have any further questions, feel free to reach back out!
      Happy learning!

    • @muhammadrifqisetiawan2925
      @muhammadrifqisetiawan2925 4 роки тому

      @@realpars you say that the course is free? but when I visit the link, they say that this course isn't free at all.

  • @eaglelee952
    @eaglelee952 3 роки тому

    excellent teaching. BTW, more and more machine use Schneidar PLC now, do you have course for Schenider PLC? thanks

    • @realpars
      @realpars  3 роки тому

      Hi Eagle,
      Thanks for your comment!
      We currently do not have any video courses on Schneider PLC. I will happily pass this on as a topic suggestion to our course developers.
      Thanks for sharing and happy learning!

  • @mauricegasongo1053
    @mauricegasongo1053 5 років тому

    thank you, can please make a video of all gates and their symbols in function block d and ladder logic?

    • @realpars
      @realpars  5 років тому +1

      Hi Maurice,
      Thanks for the topic suggestion, I will definitely go ahead and forward this to our creator team. Happy learning!

    • @industrialautomationknowle373
      @industrialautomationknowle373 4 роки тому

      #industrialautomationknowledgebank

  • @anlee95
    @anlee95 4 роки тому

    rất bổ ích . thank very much

    • @realpars
      @realpars  4 роки тому

      You are very welcome!

  • @Venkatiuv
    @Venkatiuv 4 роки тому

    How can I write a program if X number of motors using function block. Please explain.
    Thank you realpars.

    • @realpars
      @realpars  4 роки тому

      Hi Venkat,
      Thanks for your comment and suggestion. I will make sure to forward this to our course developers!

  • @andrewmikhael8085
    @andrewmikhael8085 5 років тому +7

    Thanks , please can you make a video about encoders ?

    • @realpars
      @realpars  5 років тому

      Hi Andrew, thank you! I will pass your request on to our creator team. Happy learning!

  • @derina.maleek9408
    @derina.maleek9408 5 років тому

    Please answer Hello. I'm want to start my journey in learning motion control I think I just need plc and driver and stepper motor I think I don't need a encoder I wondar that I am right or not

    • @realpars
      @realpars  5 років тому +1

      Hello,
      The encoder is used to give you the feedback of the motor's position so that you can give it a command according to the feedback you are receiving.
      But take care of the resolution of the encoder you are choosing. For your application, normally there is no need for a high-resolution encoder.
      Thanks

  • @soolammobile8280
    @soolammobile8280 2 місяці тому

    Nice Teach

  • @amitkumar5602
    @amitkumar5602 5 років тому

    Sir kindly make a video on IBMS. and descriptions on IBA and DALI.

    • @realpars
      @realpars  5 років тому

      Hi Amit, thanks a lot for your topic suggestion, I will send this through to our creator team.

  • @jermanskingsly7773
    @jermanskingsly7773 5 років тому

    nice sir,thanks please can you make a video about encoders ?

    • @realpars
      @realpars  5 років тому

      Hi there, thanks for the tip! I will pass your request on to our creator team. Happy learning!

  • @puun5991
    @puun5991 3 роки тому

    Thanks, the video was simple to understand. Do you have any video about Sequential function chart, Structured text and Instruction list? All of those are PLC programming language

    • @realpars
      @realpars  3 роки тому

      Hi there,
      Thanks for your comment!
      We currently mostly focus on Ladder language. I will happily go ahead and forward that to our course developers as a topic suggestion!
      Thanks for sharing and happy learning

  • @mr.lubynets
    @mr.lubynets 5 років тому

    Realy cool

  • @derina.maleek9408
    @derina.maleek9408 5 років тому +1

    Hi I want buy Siemens 1200 ac/dc/rly CPU. Wondar that I need a memory card or not

    • @zorro4622
      @zorro4622 5 років тому +1

      Hi! Basically, you don't have to buy a memory card for the S7-1200 series, because it has a built-in program memory (work memory). But if you want, you can extend the CPU with a memory card, but it's used to store project on that or do a password reset or update the firmware. And be careful, because normal SD cards won't work, only special formatted Siemens cards (and never format these cards from PC, because you'll brick the card!).
      But if you want to start programming with it, you'll be happy without having a memory card. :)

    • @derina.maleek9408
      @derina.maleek9408 5 років тому

      @@zorro4622 thank you

  • @jianbinchen1428
    @jianbinchen1428 5 років тому

    I think they are basically the same, only with the difference in terms of the vision

  • @ArunKumar-sg6jf
    @ArunKumar-sg6jf 5 років тому

    bro please tell best book for plc and industrial automation

    • @realpars
      @realpars  5 років тому

      Hi Arun,
      We don't have any specific books that we would truly recommend at the moment. However, maybe other students over here might have suggestions :). Happy learning.

    • @cyrox1859
      @cyrox1859 5 років тому

      step seven in seven steps by c.t.jones

  • @MD-cd7em
    @MD-cd7em 5 років тому

    YES SIRR..

  • @filipkramaric6636
    @filipkramaric6636 5 років тому

    Is there a way to use function blocks instead ladder logic with s7-300,1200,1500 on tia portal?

    • @MaNemUmar
      @MaNemUmar 5 років тому

      Filip Kramarić if im not mistaken, step 7 allowed the user to alternate between ladder logic and other languages such as function block diagram and structured list. So yes, a PLC program MAY be written entirely in a language other than ladder logic

    • @ziborgbe
      @ziborgbe 5 років тому

      As i know 1200 & 1500 plc support FBD I am not sure about s7 300.

    • @MaNemUmar
      @MaNemUmar 5 років тому

      ziborgbe it does.

    • @filipkramaric6636
      @filipkramaric6636 5 років тому

      @@MaNemUmar I have seen that it has some variation of FBD but since I have used LOGO 8! I was wondering if it is possible to use that kind of FBD? The FBD in step 7 is some kind of ladder logic with function blocks which is something I don't personally like. Wish I could program s7 in the LOGO comfort.

    • @cyrox1859
      @cyrox1859 5 років тому

      when creating an FB, fC or On you have the chose betwin ladder, fbd, and instruction list,

  • @charliechimples
    @charliechimples 3 роки тому

    Well explained, thanks for sharing. 🐵

    • @realpars
      @realpars  3 роки тому

      You're very welcome!

  • @abdulazeemadesanya825
    @abdulazeemadesanya825 3 роки тому

    Please help!!! Does anyone know how to export a Function Block Diargram in Codesys as an XML file and open it on PLC open or simply export it to PLC open? Your help will be much appreciated. Thank you.

    • @realpars
      @realpars  3 роки тому

      Abdulazeem, what CODESYS editor are you using? Typically, the export tool is in the PROJECT menu item or you can do a "save as" and select the file type as Project which saves the file in XML. In the CODESYS 3.5 SP1 editor, you can also select "Export as PLCOpenXML" from the PROJECT menu. Repeat the process at the other device, but use the Import tool.

    • @abdulazeemadesanya825
      @abdulazeemadesanya825 3 роки тому

      ​@@realpars Thank you for your quick response. I use version 2.3. I have tried both methods it wouldn't work. The PROJECT menu has EXPORT as an option but it only saves files as an *EXT file. What I am trying to achieve is to Export the file to a PLC open XML file or if I can covert the Ext file which already has all the FBD program as a PLC open XML file. Your help will be much appreciated. Thank you!

  • @gerbawyasgat4869
    @gerbawyasgat4869 5 років тому

    how can i get the software

    • @realpars
      @realpars  5 років тому

      Hi Gerbraw,
      We currently only have the following links to download different versions of STEP7
      sie.ag/2eH6GEM sie.ag/2Jt80F0
      Hopefully, that is helpful. Happy learning!
      p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 17.0px; font: 12.0px Helvetica}

  • @adisharr
    @adisharr 4 роки тому

    If you can read ladder, you can read FBD and vice versa. I don't see any advantage to FBD as it generally takes up more screen space to accomplish the same operation.

  • @szwecmylove
    @szwecmylove Місяць тому

    The volume on the voice fades in and out on each section and it is hard to hear sometimes

  • @phuciendj1572
    @phuciendj1572 4 роки тому

    😍😍😍😍😍

  • @prasenjitdeb9139
    @prasenjitdeb9139 5 років тому +2

    I would still prefer ladder logic over fbd

    • @jothain
      @jothain 3 роки тому

      Exact opposite for me. It's much easier to simulate and visualize functions imo in fbd :)