#include "rsi.h"
#include "HelperFunctions.h"
#include <thread>
void MotionHoldReleasedBySoftwareAddressMain()
{
using namespace RSI::RapidCode;
const int AXIS_NUMBER = 0;
const int USER_UNITS = 1048576;
unsigned int SOFTWARE_ADDRESS = 0x026000B4;
char rmpPath[] = "C:\\RSI\\X.X.X\\";
SampleAppsCPP::HelperFunctions::CheckErrors(controller);
try
{
SampleAppsCPP::HelperFunctions::StartTheNetwork(controller);
SampleAppsCPP::HelperFunctions::CheckErrors(axis);
unsigned long hostAddress = controller->
HostAddressGet(SOFTWARE_ADDRESS);
if (controller->
MemoryGet(hostAddress) != 0x0)
{
}
std::this_thread::sleep_for(std::chrono::seconds(3));
std::this_thread::sleep_for(std::chrono::seconds(3));
}
{
printf(
"%s\n", err.
text);
}
system("pause");
}