5 Fundamental Motion Control Commands
![Motion Control Commands - thumbnail](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbd5656bc3c90db847c47_Motion%20Control%20Commands%20-%20thumbnail.jpg)
Welcome to this article on the five fundamentals of motion control! Regardless of the hardware vendor or software platform you’re using, certain core principles apply universally to controlling a servo axis.
Today, we’ll explore these essential pillars and focus on five basic motion commands crucial for operating a servo axis. Let's dive in and unravel the basics of motion control!
Resetting a servo axis
Most instructions on a servo axis require the drive to be free of any errors. That is why one of the most essential servo axis commands is the reset command.
Resetting a servo axis prepares the drive for normal operation by removing any error states or alarms on the drive and by clearing any active commands or setpoints that may interfere with new operations.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbe10ddfb14be90260084_Resetting%20a%20servo%20axis.gif)
Enabling a servo axis
After an axis has been cleared of any faults, the axis is ready to be energized. Before an axis can execute any type of movement command, it needs to be powered on, or enabled first.
After the enable command is activated, the servo axis powers up and prepares itself for motion control.
Furthermore, enabling the axis activates position control, causing the axis to start regulating and maintaining its setpoint position.
![Enabling a servo axis](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbe248af3c31bb4333dad_5%20Fundamental%20Motion%20Control%20Commands.webp)
So the axis is powered up now. We’re ready to start moving, right?
Homing a servo axis
Not quite. Although the axis might be enabled, it cannot move to a setpoint position until it knows its current position. Here is where the homing command comes into play.
Homing a servo axis sets a reference position, a home position in the axis, and ensures accurate and repeatable positioning for subsequent operations.
There are various types of homing commands, which also depend on the type of encoder used for your servo axis. Generally speaking, there are two main categories of homing commands: Active and Passive;
- Active Homing Commands involve moving the axis toward a home sensor, stopping at it, and setting the reference position at this point.
- Passive Homing Commands do not move the axis but instead set the home position at the location where the homing command was initiated.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbe62fabef040da1e862c_Homing%20a%20servo%20axis.gif)
After completing a homing command, the axis accurately knows its position and is ready for the next phase: moving the axis.
Moving a servo axis
The main objective of integrating a servo axis in an industrial application is to achieve precise positioning.
Positioning an axis involves moving it to a specific location.
There are various instructions available for moving a servo axis:
- Absolute Move Instruction moves the axis to a specified absolute position. For example, a piston is moved from its retracted position of 5mm to its extended position of 150mm.
![Absolute Moving a servo axis](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bc585a88c7a3b080f79fa_Absolute%20Moving%20a%20servo%20axis-new.gif)
- Relative Move Command moves the axis a specified distance relative to its starting point. For example, a foil stamping machine advances the foil material by 50mm after every execution trigger.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbf25621690d65fc09324_Relative%20Moving%20a%20servo%20axis.gif)
- Velocity Command moves the axis at a constant speed. For instance, a conveyor belt runs at a constant speed of 25mm/s.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bcf127f33e0e49ed3ec68_Velocity%20Command.gif)
- Jog Command moves the axis in a specific direction as long as the command is being executed. For example, an operator jogs a vertical lift upwards to adjust the height of the lift to align with a workbench for loading parts.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbf5e52e2062220bac643_Jog%20Command.gif)
- Superimposed Move Command triggers an additional motion to be overlaid on top of an ongoing movement. For example, superimposing a slight oscillating motion on a steadily moving paper roll in a printing press ensures even ink distribution across the paper.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbf825e70fd5b4896e570_Superimposed%20Move%20Command.gif)
Other types of move commands may also be available depending on the hardware platform you use – Siemens, Rockwell, Beckhoff, B&R, etc… - but these five showcased before are the most commonly used.
So far we’ve cleared any faults on our axis, we’ve enabled it, and we established a reference position by homing the drive. Then we initiated movement using a move command. Now, it’s time to bring this to a conclusion – it’s time to stop the servo axis.
Stopping a servo axis
Stopping an axis halts its motion, either immediately or in a controlled manner.
An immediate stop command abruptly stops the motion by braking the drive as quickly as possible, aiming to prevent any harm to operating personnel.
For instance, upon noticing a potential crash, an operator presses the emergency stop button, immediately deactivating all servo motors controlling a robotic arm on an assembly line.
This action rapidly stops all movements, ensuring the operator's safety and preventing damage to the robotic arm or any surrounding equipment.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbf977f6058bec0128c78_Immediately%20Stopping%20a%20servo%20axis.gif)
On the other hand, a controlled stop command decelerates the servo axis smoothly, avoiding mechanical stress on the system or overshooting the position.
For example, a conveyor system transporting empty carton boxes comes to a smooth halt using a controlled stop command, preventing any boxes from tilting over.
![](https://cdn.prod.website-files.com/65f854814fd223fc3678ea53/668bbfc35e70fd5b48973006_Controlled%20stopping%20a%20servo%20axis.gif)
In short, stopping a servo axis is crucial for system and operator safety, providing a way to halt motion appropriately depending on the situation.
Wrap-Up
These 5 basic commands form the core of motion control in PLC applications, enabling precise and reliable control over automated machinery.
They allow for handling faults, initializing and powering up servo drives, establishing reference positions, executing precise movements, and ensuring safety through controlled stops.
To learn more, check out the Motion Control and Robotics skill paths at RealPars.com.
Learn from Industry Experts
With a 7-day trial, then €25/month