Machine builders can virtually prototype their machine control systems with LabVIEW and the NI SoftMotion Development Module for motion profile generation as well as mechanically simulate and detect collisions with SolidWorks and COSMOSMotion.
Intense competition is putting pressure on machine builders to deliver machines with higher throughput, reduced operating cost, and increased safety.
By Nipun Mathur, National Instruments
Faster, better, cheaper, safer is the name of the game for machine builders. For this reason, today’s machine builders have switched from rigid, single-purpose machines – relying purely on mechanical gears and cams – to flexible multipurpose machines by adopting modern control systems and servomotors.
Although these improvements have made machines more adaptable, they also have introduced a significant amount of complexity to the machines and subsequently to the machine design process. Along with designing the mechanicals, machine builders now incorporate control logic, human machine interfaces (HMIs), networking, and machine condition monitoring systems into their designs. The added complexity has created inefficiencies in the machine design process that lengthen design time and increase design cost.
Solving this multidisciplinary engineering problem requires improvements in three key areas – development techniques, design tools, and embedded control technology. The term mechatronics is gaining popularity as a way to describe this evolution. It represents an industry-wide effort to improve the design process by integrating the best available development practices and technologies to streamline machine design, prototyping, and deployment. A mechatronics-based approach can lower the risks associated with machine design and meet the following five key challenges that machine designers face today.
1. The Machine Design Process Is Serial and Slow
A typical machine design (Figure 1) starts with mechanical engineers designing the machine mechanicals using CAD tools. Once they complete the CAD model and create a physical machine, electrical and controls engineers lay out the electrical system and program the machine controller. The design team performs the first test run of the integrated machine on the physical model. Any problems at this stage that require reworking machine parts can lead to long delays and increased expenses and can mean the difference between profit and loss for the machine builder. Getting input from controls and electrical engineers early in the design process can significantly lower this risk. The mechatronics design approach addresses this challenge by connecting machine design tools and creating a virtual machine prototype before engineers design the physical machine.
Figure 1. Machine builders have traditionally used a sequential approach to machine design, resulting in a lengthened design process. Mechatronics represents an industry-wide effort to improve the design process by integrating the best available development practices and technologies to streamline machine design, prototyping, and deployment.
A virtual machine prototype is a 3D CAD model of a machine that interacts with a simulation of the machine controller to visualize and test machine movements and logical operations. By creating a virtual machine prototype, design teams can test and improve their machine designs in software before creating any physical components. The key to virtual machine prototyping is design tool integration – linking mechanical, electrical, and control design tools.
Machine builders can use graphical system design tools such as those from NI and 3D CAD tools from vendors including SolidWorks to create a virtual machine prototype (Figure 2). For example, they can test the operation of their machines before creating any physical models by developing their control logic and motion profiles with LabVIEW and by creating a 3D CAD model of their machine and simulating it with SolidWorks. After testing control logic and motion profiles, machine builders can deploy the code to a CompactRIO embedded system using the LabVIEW FPGA Module and the NI 9505 motion power drive module for CompactRIO to provide a flexible platform for creating precise motion control for machines.
Figure 2. Open graphical system design tools are key to an integrated, mechatronics-based approach to machine design that reduces cost and time.
2. Communication with Customers and Design Team Members Is Challenging
Understanding customer requirements and developing an appropriate design plan for the machine’s mechanical and control systems can be a long and involved process. Miscommunication with the customer in this process can lead to unsuitable machine design and increased cost. By using 3D CAD, machine builders have improved communication with their customers by providing a virtual model of machine mechanicals.
By using virtual machine prototyping and adding logic simulation to the 3D CAD model, machine builders now can show their customers how a machine will function before investing in the development of the physical mechanical structures. In addition to demonstrating the machine operation for the customer, virtual machine prototyping also can increase interaction among design team members early in the machine design process, resulting in a better final machine.
3. Motion Profile Verification Requires Risky Physical Machine Testing
Debugging motion profiles on a live machine can be risky. A crash can result in weeks of downtime and added cost for replacement parts. By integrating motion profiles generated in LabVIEW with a 3D CAD model of the machine in SolidWorks, machine builders can detect potential collisions on virtual prototypes, safely verify and fine-tune their motion profiles, and avoid any collisions on the physical machine (Figure 3).
4. Accurately Sizing Motors Is Challenging
Because of the complexity of motor drive systems, choosing a motor with the optimal size, cost, weight, and performance for an application can be challenging. If a motor is too small, it can result in overheating, poor control performance, and difficult tuning. If a motor is too large, it can add unnecessary weight and cost to the machine. Machine builders can use virtual machine prototyping to improve the motor sizing process.
With LabVIEW and SolidWorks, machine builders can easily determine the torque required to drive the machine with the desired motion profile. They then can use LabVIEW for motor simulation and determine the best-fit motor for their application to meet the machine’s torque and speed requirements.
5. Initial PID Tuning Is Difficult to Determine
Determining the initial PID tuning parameters of a complex machine is difficult, and incorrect settings can produce unexpected machine movements. Using virtual machine prototyping, machine builders can tune PID control algorithms on a 3D CAD model of a machine and gain insight into the PID tuning parameters for the physical machine. These PID tuning settings can then be used on the real machine as a safe starting point.
By integrating machine design tools, the mechatronics approach to machine design streamlines the design process, improves communication both with the customer and within the design team, verifies motion profiles, improves motor sizing and PID tuning, and can give machine builders a clear competitive edge.
About the Author: Nipun Mathur is the NI motion control and mechatronics product manager. He holds degrees in computer engineering and electrical engineering from the University of Nebraska – Lincoln.