Software, IT, OT & cybersecurity
Machine learning seamlessly integrated into control systems

Running a new product on a production line currently requires parameters to be changed. During the first run, some further fine-tuning will be needed to achieve a perfect result. Fully automating such product changeovers will require machine learning. At Hannover Messe, Beckhoff demonstrated how this can be seamlessly integrated into a TwinCAT 3 environment in real time. This gives machine manufacturers an ideal foundation for improving machine performance.
The basic idea behind machine learning is that solutions are no longer developed through conventional engineering, but are instead based on algorithms. Algorithms can be trained using process data to create efficient models and develop better, higher-performing solutions. For automation technology, this opens up new possibilities and optimisation potential in areas such as predictive maintenance and process control, anomaly detection, cobots, automated quality inspection and machine optimisation. Patrick Gielis, general manager of Beckhoff Automation Belgium, believes that machine learning could well be the future of automation. “That is precisely because it addresses the challenges machine builders face today. We have already taught machines to see, listen and talk. Teaching them to think and make decisions autonomously is the next step. Machine learning can deliver significant added value to end users, making it a unique selling point for machine builders who have embarked on this path.”

With TwinCAT 3, the new possibilities offered by machine learning and deep learning are available to automation engineers in the familiar environment.
Everything in one environment
At Hannover Messe, Beckhoff Automation demonstrated that it had done all its homework on machine learning, even though the technology is still in its infancy. Machine learning models can be trained using familiar frameworks such as MatLAB or TensorFlow. They can then be integrated directly into the TwinCAT Runtime using ONNX (Open Neural Network Exchange), the standardised exchange format for describing trained models. “The major advantage is that everything runs in the PLC. As a programmer, you don’t need another device, everything can be done in one environment for greater efficiency. What’s more, TwinCAT’s multi-core support makes it possible to run different tasks synchronously and in real time. That will be essential, because machines need to make the right adjustments in a fraction of a second. Our demo showed how a machine can become more energy-efficient by minimising acceleration and deceleration, based on what it had learned in practice. But the same approach can also improve quality, increase productivity …”

No threat to people
Two new functions have been integrated into the TwinCAT Runtime to enable machine learning. TwinCAT 3 Machine Learning Inference Engine handles conventional machine learning algorithms, while TwinCAT 3 Neural Network Inference Engine is responsible for deep learning and neural networks. The TwinCAT 3 Inference Engine can be accessed from different task contexts without them interfering with one another. Full access to all fieldbus interfaces and data in TwinCAT is also retained. This means that the ML solution can use a vast amount of data, while real-time interfaces to actuators are available. “People need not feel threatened by these developments at all. What we are actually proposing are methods that enable the machine to learn for itself. It is not yet thinking entirely independently. But the fact that artificial intelligence was such a major topic at Hannover Messe shows that it will soon become a reality.” Beckhoff has a fully integrated vision ready.
Question about this story? Ask your question
Companies in this story
Keep following this
Get an email when a new story is published. No account needed.
- ThemeProcess measurement and control
- SubjectSoftware, IT, OT & cybersecurity
- CompanyHANNOVER MESSE
- CompanyBeckhoff Automation





















