Console.WriteLine("📜 Axis Streaming Motion: PT");
try
{
int points = 3;
int emptyCount = 2;
double[] positions = [1.0, 0.5, 0.75];
double[] times = [0.2, 0.3, 0.1];
positions,
times,
points,
emptyCount,
false,
true);
Console.WriteLine($"Final position: {axis.CommandPositionGet()}");
}
finally
{
controller.Delete();
}
Constants used in the C# sample apps.
const int AXIS_0_INDEX
Default: 0.
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...
int32_t MotionDoneWait()
Waits for a move to complete.
int32_t AmpEnableSet(bool enable, int32_t ampActiveTimeoutMilliseconds=AmpEnableTimeoutMillisecondsDefault, bool overrideRestrictedState=false)
Enable all amplifiers.
void MovePT(RSIMotionType type, const double *const position, const double *const time, int32_t pointCount, int32_t emptyCount, bool retain, bool final)
A move commanded by a list of position and time points.
RSIMotionType
PT and PVT streaming motion types.
Helpers namespace provides utility functions for common tasks in RMP applications.