Tips on how to design motion control systems

Compact motion control systems are essential to applications ranging from surgical robots to drones. While their design is based on the laws of motion, perfecting it is an iterative process. Motion engineering expertise is key to fast and effective development. maxon engineer Ronak Samani discusses the process of designing motion control systems.
The basic task of any motion control system is to manage the movement of a load. However, for many applications, the crucial element is to achieve this with precision and reliability. Motion control is needed across a diverse range of sectors, from manufacturing to health care, but with compact systems, typically generating less than 1kW of power, the need for precision is at its highest.
The smaller the scale, the higher the level of accuracy, stability, and fine control that’s required – think of manoeuvring a robotic arm during a complex procedure, compared to controlling a crane at a port.
Within this realm, we’re talking about applications such as surgical tools that need to operate with micrometre precision inside the human body, or extremely lightweight devices, such as those involved in aerospace or space exploration. Ideal motor designs for these compact motion systems include the brushed and brushless (BLDC) DC motors, preferred because of their small size and relatively high torque generation.
Open-loop control
While a motor, or motors, do the actual work, controlling their motion is vital. The most basic principle is open-loop control, where the motor moves at a certain acceleration, speed, deceleration and position, based on the commands it is given, and without checking if it has achieved the desired result.
Open-loop control is used for applications that are inherently stable, meaning the system’s response is usually known because interference is limited, or varying conditions will not affect the system’s operation. This could involve applications such as fans for cooling electronic devices, where the airflow requirements are approximate and precise levels are not critical, or conveyors with generally constant loads, where the torque requirement does not vary significantly and maintaining approximate speed is sufficient.
In an open-loop system, the motor operates on the applied voltage, with no feedback to verify how fast or how far it has moved, relying instead on predictable loads and mechanical devices to stop the motion. To achieve this, a compact DC motor can operate directly from the voltage supply, sized accordingly and with current limits. For open-loop applications using a BLDC motor – which may be selected to achieve higher speeds or torque levels, or longer service lives – the design always needs a controller to enable electronic commutation, the switching of the phases to make the motor spin.
Closed-loop control
To optimise precision and accuracy, closed-loop control techniques are needed. Closing the loop means monitoring the output variable using sensors to provide feedback data. This information is then used by the control device to modulate motion continually according to parameters such as torque, speed and acceleration.
A motor controller is needed to manage these parameters, acting on information provided by a sensor such as an encoder, which detects movement of the motor shaft or another moving part of the motion system. The encoder uses sensors that generate electrical signals, which the controller interprets to determine angle, direction and speed.
Ultimately, the control of an application is always rooted in torque control, which is necessary to set mass into motion and manage acceleration and deceleration, including tasks such as lifting, lowering or holding objects in tension. Consequently, current control loops are the key feedback processes for these devices. Because current and torque share a linear relationship in DC brushed and brushless motors, a current controller sets the input torque command, which it converts to a current command, measuring the current applied and correcting it as required.
The motion controller
In the hierarchy of motion control, the motor controller is next in line to the motor. This device includes a power stage that modulates the voltage and current supplied to the motor to execute the motion commands. Motor controllers, such as maxon’s Escon speed controller or Epos4 position controller, are configurable, meaning that their built-in firmware lets you adjust settings such as speed, torque and position limits, as well as communications options.
The motion commands are generated by a motion controller, which is the next level up in the architecture. A motion controller, such as maxon’s MicroMACS6 or MiniMACS6, is programmable, meaning that you can set the motion trajectory plans and interpolation, including parameters such as torque and acceleration. Within this hierarchy, the motion controller commands the motor controller, or coordinates several motor controllers in multi-axis applications, to execute the motion commands.
The choice of operating mode with closed-loop operation dictates the architectural responsibility between motion and motor controllers. In a profile-based, point-to-point operating mode, the motion controller sets parameters and commands the motor controller. The motor controller is then responsible for processing motion profiling or trajectory generation, often based on a trapezoidal profile, where it accelerates at a constant rate to a constant speed, maintains that speed, and then decelerates at a constant rate to stop, forming a trapezoid shape when plotting speed against time.
This kind of point-to-point mode is not suitable for real-time applications because communications between the motion controller and motor controller exchange pre-defined setpoints at a fixed rate, and cannot react to external events or to real-time control inputs.
Real-time control
When real-time control is required, a cyclic operation mode can be used, with responsibility for trajectory generation shifting to the motion controller that processes motion profiling and transmits updated set values to the control loops to deal with ongoing inputs. This also requires real-time communications using protocols such as CANopen or EtherCat.
Moving up to a higher level, in a strongly coupled application, maximum responsibility is given to the motion controller, which processes motion profiling and control loops across multiple axes. Here, the motor controller is configured purely as a current controller and serves only as a power amplifier, following the commands of the motion controller.
The difference is that while the cyclic operation mode might still operate to a pre-set, point-to-point profile – albeit reacting to external inputs in real time – in a strongly coupled application, the motion controller can calculate advanced trajectories in real time, and across multiple axes.
Controller selection
Selecting a controller requires a holistic approach, which goes through to the requirements placed on the motors themselves. It is crucial to perform a thorough situational overview of the application, defining the mechanical layout and intended motion control task, along with boundary conditions such as spatial envelopes, compliance factors, environmental conditions, and service life requirements.
While system design and controller selection are based on the principles of motion, tailoring an application is an iterative approach, rather than a theoretical study. Describing the drive system clearly in its environment, and defining the requirements clearly from outset, helps designers to arrive at an optimum arrangement more quickly. In fact, the most common challenge we see during system design and selection is insufficient formulation of drive system requirements.
Selection tools, such as drive system configurators, can be extremely useful to assist when developing motion systems. But to ensure that all bases are covered, reviewing a comprehensive plan with an engineer dedicated to drive system design will ensure that any design issues are identified and resolved early in the process, without compromising the design at later stages.
Most importantly, if the drive system plays a central role in the application, dedicated engineering expertise will make sure that the motion cycle is optimised to achieve the best performance.

