What is a Control or Function Block?
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee77_64ecb5a197062e708448bb36_What-is-a-Control-or-Function-Block-1.png)
Have you ever heard of a control block? How about a function block? Different programmers call them by different names, and that can be confusing, but I hope to clear things up for you in this article.
So, what exactly is a control or function block? They give us extra functionality in our PLC system. You have probably seen or used a basic timer or counter while looking through the program of a PLC.
When looking at the ladder logic, it literally looks like a block in the middle of a rung. These are examples of the control or function blocks that we are talking about.
The great thing about using one of these PLC control blocks is the fact that it can replace a complete physical component.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee7b_64ecd82e332120e4c3aaf8b5_Software-Function-Blocks-as-a-Replacement-for-Equivalent-Physical-Component.png)
PLC Timers as Control or Function Blocks
Let’s discuss some of the most basic and commonly used control or function blocks. Probably the most common is a “timer”. More specifically the two basic types;
– Timer “ON delay”.
– Timer “OFF delay”.
A timer “ON delay” will wait to turn an output on after the set period of time.
A timer “OFF delay” will turn the output off after the set period of time.
Both timers must be triggered by an input. Once the input is energized, the timer will start.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee79_64ecd82fd17de197bacc69ed_Timers-as-Control-or-Function-Blocks.png)
OFF-Delay Timers and Car Wash
Anyone that has ever washed their vehicle at a car wash has experienced a timer off delay.
You put your money into the machine to turn the car wash equipment on. Adding the money into the machine acts as your input.
A timer immediately starts counting down as the pumps and car wash equipment turn on. Once the timer ends, the equipment will turn off. This is all possible with a simple control block known as the timer off delay.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee81_64ecd82eb30ab000d2b97b0b_OFF-Delay-Timers-and-Car-Wash-Example.gif)
ON-Delay Timers and Locking your Vehicle
An “ON delay” timer works similarly to an off delay timer except the timer will delay turning on the output instead of turning it off. You may have experienced the effects of this by simply locking your vehicle.
Many vehicles have a feature that will delay the locking of the vehicle by 3 to 5 seconds after pushing the lock button. In this scenario, the lock button acts as an input that triggers the timer. After the set amount of time, the output is energized and the vehicle then locks.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee7c_64ecd82e95d63100b974f21f_ON-Delay-Timers-and-Locking-your-Vehicle.gif)
As you can imagine, timers such as these, are extremely useful in an industrial setting. Being able to program the timer in the PLC instead of using a hardwired mechanical timer saves time, money, and is far more reliable in the long run.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee7a_64ecd82e4c86d97b4736a135_Timer-in-the-PLC-Instead-of-Using-a-Hardwired-Mechanical-Timer.png)
ON-Delay Timers and Box Filling Station
“ON delay” timing is used frequently in automated equipment. Let’s look at a box filling station. A box has to move from one set of rollers to a weight scale to be filled with a product. Once the box is filled, it triggers an “ON delay” timer for about one second.
This then triggers a pneumatic cylinder programmed to the timer’s output. This cylinder pushes the box to the next set of rollers. The timer allows that extra second to make sure nothing else is going to fall into the box and make sure the coast is clear for the box to move.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee7d_64ecd82e72cc92d2af4ebad6_ON-Delay-Timers-and-Box-Filling-Station.gif)
OFF-Delay Timers and Vacuum Systems
Vacuum pumps are commonly programmed with “OFF delay” timing control blocks. One example that I am familiar with is in the manufacturing of adhesives. Once the adhesive is mixed with all of its ingredients, the manufacturer must remove all of the extra air bubbles from the adhesive.
This is made possible with a vacuum pump. The operator will start the vacuum pump while the mixer is turning and let it run for the programmed period of time, usually half of an hour or longer.
Once the timing period ends, it will turn off the vacuum pump.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee82_64ecd82f454aef6140440b43_OFF-Delay-Timers-and-Vacuum-System.png)
Let’s take a look at what we have learned until now.
Control blocks and function blocks are the same things called by different names. They perform a function in our programming of PLCs.
Some of the simple functions are Timers and Counters. More specifically are “ON delay” timing and “OFF delay” timing. These are examples that we talked about in more detail.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/65f854814fd223fc3678ee7e_64ecd82f68b126ab3c72519a_Examples-of-Control-or-Function-Blocks.png)
“ON delay” timers will turn on an output after the set period of time.
“OFF delay” timers will turn the output off after the set period of time.
These are extremely helpful and useful in our PLC programming. They can also replace hardwired physical components to give us more reliability and flexibility.
I truly hope this article has helped you in some way. There is a lot to learn when it comes to PLCs and programming. Getting a grasp of the simple control blocks here can ease your learning.
Thanks again for reading. Leave your questions and comments and we’ll chat with you soon!
Happy learning,
The RealPars Team
Learn from Industry Experts
With a 7-day trial, then €25/month