#include "rsi.h"
#include "SampleAppsHelper.h"
void TemplateMain(int argc, char *argv[])
{
const int AXIS_X = (0);
const int AXIS_Y = (1);
const int IO_NODE = (7);
try
{
controller->MotionCountSet(controller->AxisCountGet() + 1);
axisX = controller->AxisGet(AXIS_X);
axisY = controller->AxisGet(AXIS_Y);
multiAxisXY = controller->MultiAxisGet(controller->MotionCountGet() - 1);
io = controller->IOGet(IO_NODE);
}
{
printf(
"\n%s\n", err.
text);
}
controller->Delete();
system("pause");
}
Represents a single axis of motion control. This class provides an interface for commanding motion,...
The IO object provides an interface to the inputs and outputs of a network node.
static MotionController * CreateFromSoftware()
Initialize and start the RMP EtherCAT controller.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
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...
Represents the error details thrown as an exception by all RapidCode classes. This class contains an ...
static void CheckErrors(RapidCodeObject *rsiObject)
Checks for errors in the given RapidCodeObject and throws an exception if any non-warning errors are ...