#include "rsi.h"
#include "HelperFunctions.h"
using namespace RSI::RapidCode;
const int AXIS_NUMBER = 0;
const int VELOCITY = 8000;
const int ACCELERATION = 6000;
const int DECELERATION = 6000;
const int MAX_TRAVEL_TO_SWITCH = 10000;
const int MAX_TRAVEL_TO_EDGE = 100;
const int MAX_TRAVEL_TO_INDEX = 2000;
const int LOG_HOMING = 0;
void homeMain()
{
SampleAppsCPP::HelperFunctions::CheckErrors(controller);
try
{
SampleAppsCPP::HelperFunctions::StartTheNetwork(controller);
axis = controller->
AxisGet(AXIS_NUMBER);
SampleAppsCPP::HelperFunctions::CheckErrors(axis);
if (LOG_HOMING)
{
}
if (LOG_HOMING)
{
}
{
printf("Homing successful\n");
}
}
{
printf(
"\n%s\n", err.
text);
}
system("pause");
}