PLC System for Multi-Axle Harvesting Machine Using Model-Based Design
Get our
casebook

By Vincent Theunynck, Partner at Vintecc, Creator of Smarter Machines
Our competences
- Model-Based Design
- PLC deployment
- Simulation
- Matlab/Simulink Modeling
“Model-Based Design sped development enormously, made it possible to offer additional features with little additional work, and gave us a high level of confidence in the software we delivered. Without modeling and simulation, we might still be struggling to get the system up and running.”
Vincent Theunynck
Partner
Vintecc
- Matlab/Simulink Modeling, Simulation
“With any huge machine, safety and reliability are critical,” says Vincent Theunynck, founder and principal engineer at Vintecc. “By modeling and simulating the control software as well as the powertrain and other core components in Simulink, we could see how it all worked. We verified that the software performed as intended—first in model-in-the-loop simulations, then in hardware-in-the-loop simulations—before testing on the actual machine.”
Challenge
The challenge? To develop a PLC-based control system for a four-axle, 100-ton capacity harvesting machine.
The previous version of the harvester was smaller and easier to control, requiring only simple electronic controls and no software. The new harvester, with a lot more functionality and a much greater capacity, required a significantly more complex control system. We needed to accurately model the harvester’s powertrain and hydraulic components to enable simulation-based debugging and verification of the controllers before hardware was available.
Although Vintecc had experience developing controllers in C, Vincent Theunynck had little previous experience with Structured Text (ST). To help ensure that the overall system would behave as expected, Vincent wanted to avoid hand-coding the PLCs and debugging the control code on the actual machine. Instead, he wanted to debug and verify his design through simulation and then automatically generate IEC 61131-3 ST source code for the PLC systems.
Solution

Using Model-Based Design to develop controller and plant models, verify designs with MIL and HIL simulations, and generate production Structured Text for PLC deployment was the solution!
Vintecc modeled, simulated, and implemented the complete harvester control system using Model-Based Design with MATLAB®, Simulink, and Simscape™.
Vincent partitioned the overall control system design into three major application programs, each implemented on a separate PLC and communicating with one another over a CAN network.
“We created a model for each controller that included Stateflow® charts to manage execution modes and Simulink elements such as PID Controller blocks to control the harvester’s hydraulic and mechanical systems.”
Using Simscape, Vintecc developed plant models that included tire and vehicle body elements; hydraulic pumps, motors, and cylinders; powertrain components; and mechanical linkages.
To verify the traction control, automatic axle alignment, cruise control, auto-reverse, and other functions of his control design, Vincent ran model-in-the-loop (MIL) simulations of the controller and plant models in Simulink.
After generating CODESYS® compliant ST from the controller models with Simulink PLC Coder™, he compiled the application in the CODESYS environment and deployed his control designs to three PLCs from the IFM EcoMat Mobile product family.
Using Vehicle Network Toolbox™, Vintecc implemented a CAN interface on the plant models, enabling the models to send and receive messages via a CAN bus. Vincent conducted hardware-in-the-loop (HIL) simulations in which the PLC controllers communicated via CAN messages with the Simulink plant models, which he ran in real time with Simulink Desktop Real-Time™.
Throughout development, Vintecc used MATLAB to postprocess and visualize simulation results.
Having verified and validated 90% of the software via simulation, the only remaining step was to test the PLC control system on the actual hardware to ensure correct parameter tuning before the completed system was delivered to the client.
Results
-
- 90% of design verified before hardware was available. “These machines are deployed in a very short timeframe, so they have to be extremely reliable,” says Theunynck. “Our rigorous verification and validation process reduced the number of potential errors to an absolute minimum, ensuring that the machine will remain fully operational, with no downtime or disruption of the client’s business.”
-
- Development schedule shortened by months. “Model-Based Design shortened development by two to three months because it enabled us to automatically generate production software and verify functional behavior through simulation,” Vincent Theunynck says. “As a result we were able to develop more automatic features than we had initially intended, giving the client a greater return on his software investment.”
-
- New features implemented within days. “Well into the project, the client asked for two new features: cruise control and auto-reverse,” says Vincent “With a conventional hand-coding approach, the changes would have taken at least 10 days to implement. With Model-Based Design, I implemented and tested both features in just two days.”
“Model-Based Design sped development enormously, made it possible to offer additional features with little additional work, and gave us a high level of confidence in the software we delivered. Without modeling and simulation, we might still be struggling to get the system up and running.”
Vincent Theunynck
Partner
Vintecc
Our competences
- Model-Based Design
- PLC deployment
- Simulation
- Matlab/Simulink Modeling
- Matlab/Simulink Modeling, Simulation