#include "rsi.h"
#include "SampleAppsHelper.h"
#include "SampleApps.h"
int Memory::Run()
{
const int AXIS_COUNT = 1;
const int AXIS_NUMBER = 0;
USE_HARDWARE = false;
uint64_t addr;
if (USE_HARDWARE)
{
}
else
{
}
axis = controller->AxisGet(AXIS_NUMBER);
try
{
printf("Axis Host address is 0x%llx Firmware Address is 0x%x\n", addr, controller->FirmwareAddressGet(addr));
printf("Value is %lf\n", controller->MemoryDoubleGet(addr));
}
{
printf(
"\n%s\n", err.
text);
return -1;
}
controller->Delete();
return 0;
}
uint64_t AddressGet(RSIAxisAddressType addressType)
Get the an address for some location on the Axis.
Represents a single axis of motion control. This class provides an interface for commanding motion,...
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...
Represents the error details thrown as an exception by all RapidCode classes. This class contains an ...
@ RSIAxisAddressTypeACTUAL_POSITION
Actual Position.
static void SetupControllerForHardware(MotionController *controller)
Sets up the controller for hardware use by resetting it and starting the network.
static void CheckErrors(RapidCodeObject *rsiObject)
Checks for errors in the given RapidCodeObject and throws an exception if any non-warning errors are ...
static void SetupControllerForPhantoms(MotionController *controller, int axisCount, std::vector< int > axisNums)
Sets up the controller for phantom axes, including configuring specified axes as phantom.