19#include "SampleAppsHelper.h"
20#include "SampleApps.h"
31 const int AXIS_COUNT = 1;
32 const int AXIS_NUMBER = 0;
57 axis = controller->
AxisGet(AXIS_NUMBER);
64 printf(
"Axis Host address is 0x%llx Firmware Address is 0x%x\n", addr, controller->
FirmwareAddressGet(addr));
67 catch (RsiError
const& err)
69 printf(
"\n%s\n", err.text);
uint64_t AddressGet(RSIAxisAddressType addressType)
Get the an address for some location on the Axis.
Axis * AxisGet(int32_t axisNumber)
AxisGet returns a pointer to an Axis object and initializes its internals.
uint32_t FirmwareAddressGet(uint64_t hostAddress)
Convert a host controller address to a firmware address.
static MotionController * CreateFromSoftware()
Initialize and start the RMP EtherCAT controller.
void Delete(void)
Delete the MotionController and all its objects.
double MemoryDoubleGet(uint64_t address)
Read a 64-bit double value from controller memory.
@ 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.