Perform velocity moves on multiple axes that can be updated synchronously and on the fly.
🔹 What is Multi-Axis Motion?
Multi-Axis Velocity Motion refers to a multi-axis velocity move that can be updated on the fly. This means that when a new velocity is commanded, all axes will update their velocities synchronously.
🔹 When to Use Multi-Axis Motion?
When it is necessary to update velocity, synchronously, and on the fly on multiple axes.
🔹 Multi-Axis Motion Test
In this picture, you can observe a Multi-Axis object updating its velocity 5 separate times every second. All 6 axes updated their velocity synchronously and on the fly. This means that every 1 second, the velocity of all 6 axes were updated and their update rate was tightly synchronized (happening at the same time).
.png)
In this picture, you can observe 6 axes Multi-Axis object being updated with different velocities every 100ms.
.png)
In this picture, you can observe how all 6 axes were updated every 100ms with random velocities, and every velocity update was happening at the same time (The vertical white lines display when a move is being updated).
.png)
Why did we Test?
It was important to see how fast we could update velocities on a Multi-Axis object and how synchronized these velocity moves would be.
Therefore, we ran a test that would update a Multi-Axis velocity 100,000 times. We found that every velocity update was happening at approximately 2ms.
Conclusion
A Multi-Axis object velocity can be updated every 2ms.
A Multi-Axis can change all its axes' velocities on the fly in a tightly synchronized manner
📜 Sample Code
- C#
using System.Threading;
Console.WriteLine("📜 MultiAxis Motion: Velocity");
const int CYCLES = 3;
try
{
var axisCount = controller.AxisCountGet();
controller.MotionCountSet(axisCount + 1);
MultiAxis multi = controller.MultiAxisGet(axisCount);
double[] accelerations = [1000, 1000, 1000];
double[] velocities = [0, 0, 0];
Random rnd = new Random();
for (int i = 0; i < CYCLES; i++)
{
velocities[0] = rnd.Next(1, 100);
velocities[1] = rnd.Next(1, 100);
velocities[2] = rnd.Next(1, 100);
Console.WriteLine($"Cycle {i + 1}: Velocities = [{velocities[0]}, {velocities[1]}, {velocities[2]}]");
Thread.Sleep(100);
}
controller.MotionCountSet(axisCount);
}
finally
{
controller.Delete();
}
Constants used in the C# sample apps.
const int AXIS_0_INDEX
Default: 0.
const int AXIS_1_INDEX
Default: 1.
const int AXIS_2_INDEX
Default: 2.
Represents a single axis of motion control. This class provides an interface for commanding motion,...
static MotionController * Get()
Get an already running RMP EtherCAT controller.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
void AxisRemoveAll()
Remove all axes from a MultiAxis group.s.
void MoveVelocity(const double *const velocity, const double *const accel)
Velocity move.
void AxisAdd(Axis *axis)
Add an Axis to a MultiAxis group.
Represents multiple axes of motion control, allows you to map two or more Axis objects together for e...
void ClearFaults()
Clear all faults for an Axis or MultiAxis.
void Abort()
Abort an axis.
int32_t AmpEnableSet(bool enable, int32_t ampActiveTimeoutMilliseconds=AmpEnableTimeoutMillisecondsDefault, bool overrideRestrictedState=false)
Enable all amplifiers.
Helpers namespace provides utility functions for common tasks in RMP applications.