Top organizations train their team with RealPars

daimler mercedes benz uses RealPars platform
Ford motors uses RealPars platform
General Electric uses RealPars platform
Pfizer uses RealPars platform
Tesla uses RealPars platform

After taking this course, you’ll be able to:

  • Configure a function (FC) to perform a task or calculation such as volume in a tank

  • Define the input and output parameters for an FC

  • Call an FC from an Organization Block (OB)

  • Configure a Function Block (FB) to perform a repetitive task

  • Define and configure a Data Block (DB) to support the FB logic

  • Configure an FB to monitor and control an on-off valve

  • Integrate an FB with a DRUM instruction to control a step-wise process sequence

Course curriculum

    1. 1. What is FC and how to use it in the PLC Program

    2. 2. Practical Example of Using FC in a PLC Program - Part 1

    3. 3. Practical Example of Using FC in a PLC Program - Part 2

    4. 4. Practical Example of Using FC in a PLC Program - Part 3

    1. 5. What is an FB

    2. 6. How To Create FB in TIA Portal

    3. 7. How to configure the logic for the FB

    4. 8. Calling the FB from the OB and Defining the Data Block

    5. 9. Practical Example of Using an FB (Valve Control) - Part 1

    6. 10. Practical Example of using an FB (Valve Control) - Part 2

    7. 11. Practical Example of using an FB (Valve Control) - Part 3

    8. 12. Practical Example of using an FB (Sequencer) - Part 1

    9. 13. Practical Example of using an FB (Sequencer) - Part 2

    10. 14. Practical Example of using an FB (Sequencer) - Part 3

    11. 15. Practical Example of using an FB (Sequencer) - Part 4

    12. 16. Practical Example of using an FB (Sequencer) - Part 5

    13. 17. Practical Example of using an FB (Sequencer) - Part 6

    14. 18. Practical Example of using an FB (Sequencer) - Part 7

About this course

  • 18 lessons
  • 3 hours of video content
  • Pro Course
  • Earn Certificate of Completion

Ideal for you if…

  • You are ready to expand your knowledge of Siemens S7 programming beyond basic ladder logic

  • You need to program logic which includes repetitive tasks (subroutines)

  • You want to learn how to use Data Blocks (DB) in conjunction with Function Blocks (FB) to support complex logic structures


FBs and FCs are used in Siemens S7 programming to define functions that can be executed on demand from an organization block. FBs and FCs are similar to subroutines and can simplify programming where the same task is needed multiple times within the program.

In this course, practical control examples will be used to demonstrate the use of these functions and function blocks. An FC block will be configured to calculate the level in a tank with a trapezoidal bottom. Input and output parameters will be configured to allow the FC to be used as a subroutine to calculate the level in three parallel tanks.

To demonstrate the use of a Function Block, two different examples will be developed. First, an FB will be used to monitor and control an on-off valve, including driving the valve output, monitoring the valve position feedback, and developing a command disagree alarm if the valve state does not match the commanded state after a time delay.

The second example will demonstrate a more complex use of an FB using a Data Block to support the execution of the FB logic. A DRUM sequencer will be configured in the FB to control a simple process as it progresses in a stepwise fashion.

Prepare for better pay & bigger responsibility

Testimonial title

Marcin Trojak

From my experience, I have to say that RealPars is the most professional online training program out there. The instructors are easy to follow and clearly explain PLC theories with excellent supporting visuals and real-life application examples. I like that they provide a summary after each lesson that brings together all the information and makes it easier to retain. Plus, I can train anytime, anywhere. I’m a maintenance apprentice right now, but when I complete RealPars training I’ll be ready to go after the PLC programming jobs I want.

Mohammad Khabazi

I work on electrical and instrument maintenance now, but my goal is to become a full-time PLC programmer. University courses take too much money and time. The RealPars video training method is great…the instructors are all experts and speak clearly so they keep my interest and are easy to follow. I’m eager to gain even more PLC expertise as new content is added.

Meet your instructor

Scott Sommer, PE, CAP

Scott Sommer has worked in the automation industry for over 37 years. In addition to his full-time job as Director, Automation Engineering Professional Development at Horizon Controls Group, Scott is proud to help develop the next generation of automation engineers. In his free time, he’s a RealPars instructor and an ISA trainer.

Here’s why you’ll succeed

  • One-on-one support

    Stuck or have a question? You get unlimited support from our team of proven PLC programming experts.

  • Laser-focused lessons

    We only teach you exactly what you need to know to master a PLC course. No fluff, filler, or wasting your time.

  • Experienced instructors

    All PLC training courses include step-by-step instructions from the world’s best so you can join their ranks and gain an unfair advantage.

The RealPars guarantee

  • Suited for all skill levels

    we’ll help you get the skills you need to stand out and get hired!

  • Learn practical skills

    You can immediately apply learnings and improve your results.

Start learning now

You'll get access to this course and ultimate access to the rest of the courses in the library.


  • Can I get a certificate for this course?

    Yes. RealPars will issue a Certificate of Completion (certified by RealPars) when you complete the course.

  • What is the required software?

    TIA Portal Basic V16 or higher

  • Can my employer purchase a course for me?

    Yes. Most people enroll individually, and then submit their receipt to their employer for reimbursement. However, if your employer has a tuition budget and wants to train 5 people or more, you can send us an email at [email protected] and we will help you with bulk signup.

  • Can I register for a course if I am working full time?

    Of course. All of our course content is pre-recorded, so you can work and study on your own time.

  • Do I have to travel to take this course?

    Nope! All our courses are offered online, so you can take them from anywhere in the world. All you need is a high-speed internet connection and the applicable software for your course.