Taking the time out of function blocks

Software tools are speeding up the creation of IO-Link function blocks to enable the capture of more valuable process data from machine controllers. 

By Charlie Walker February 27, 2021

Problem solving is an almost daily activity on any food manufacturing line, and the ultimate enemy of this task is time. While an engineer’s focus may well be on maintaining product quality, avoiding waste and keeping the machinery running, all of these things depend on having the agility to fix problems quickly, or, better still, to stop them from happening in the first place.

Food production and packaging halls are sometimes imperfect places – sensors must be wiped periodically, a roll of packaging artwork may need to be changed, contrast marks can stray out of alignment, and multicolored or transparent films can require frequent device resetting.

This is why so many engineers are seeing the benefits of switching to using IO-Link sensors – sometimes teamed with integration gateways to open up a window to a wealth of diagnostic data, set pre-warnings or enable acceptable limits that avoid unnecessary stoppages.

Capsules of code

Anyone looking to configure IO-Link devices into their applications in this way will need to use function blocks. They are capsules of code that simplify programmable logic controller (PLC) programming and can even replace hardwired physical components for common tasks like timers or counters. Using function blocks makes it easy to auto-configure all your sensors at once – for example, to switch to new settings when a new batch is detected coming onto the line. Instead of having to teach each sensor separately, the PLC is set up to communicate with every device in the same, streamlined way.

Then your system can be more easily set up to adjust on the fly to contamination on the sensor and to send out an alert well before there is any reduction in detection reliability. It could adapt automatically to variations in color or contrast marks on packaging artwork. It can also alert to a badly printed roll before a large amount of product is wasted.

However, for most engineers, especially when programming is not their full-time job, creating function blocksis tedious and time-consuming. To create a function block, an engineer will write some code and specify the inputs and outputs to that set of instructions. This may include some other functions that already exist within the programming environment. Then the whole thing is compiled into a library, along with any other supporting files that help it to work. Once it has been fully tested, the function can be called on repeatedly by the PLC without needing to repeat the base code.

The function block must be fully documented so that anyone who uses it later also understands its purpose and how it works. You might invest many hours, and even days depending on the task at hand and the complexity, to write and test function block functionality. Even then, users still need to create the library and document the block.

The good news is that software tools are now being developed that can quite literally “manufacture” function blocks in a matter of minutes. IO-Link function blocks and device data can be integrated into a wide range of common PLC control systems. As a result, the scope for introducing new IO-Link integrations is opening up on food production lines – all without the possibilities of errors creeping in and being repeated.

You don’t need to be experienced in IO-Link, and there’s no need to start searching for parameters, indexes and data formats. You can follow a step-by-step process in a web browser dashboard and create a fully-tested function block ready to use in the code. You can download a library with all the software you need to install the function block as well as the full supporting documentation.

Imagine a production line where there is a conveyor system with hundreds of diverter stations. You may want the sensors at each station to be used in very similar ways. Using a function block ‘factory’ gives us a chance to create the control code very quickly for all the sensors, while still having the ability to tweak each one’s exact operation depending on the inputs selected.

New horizons

The ability to create function blocks quickly invites food and beverage manufacturers to widen their automation horizons with IO-Link. Time is no longer a barrier to building in more monitoring, pre-warnings and alarms into existing machinery. With the ability to release a host of useful maintenance and service data, the machinery keeps running while you get on with your real job.

This article originally appeared on Control Engineering Europe’s website.


Author Bio: Charlie Walker is a smart sensor specialist at SICK (UK).