#include "rsi.h"
#include "HelperFunctions.h"
using namespace RSI::RapidCode;
void configAmpFaultMain()
{
const int AXIS_NUMBER = 0;
const int ACTIVE_HIGH = 1;
const int ACTIVE_LOW = 0;
const int ENABLED = 1;
const int DISABLED = 0;
const int AMP_FAULT_DURATION_TIME = 1;
SampleAppsCPP::HelperFunctions::CheckErrors(controller);
SampleAppsCPP::HelperFunctions::CheckErrors(axis);
try
{
SampleAppsCPP::HelperFunctions::StartTheNetwork(controller);
printf("\n AMP_FAULT Action set to ABORT\n");
printf("\n AMP_FAULT Trigger State set to ACTIVE_LOW\n");
printf("\n AMP_FAULT Duration set to 1.0 second\n");
}
{
printf(
"\n%s\n", err.
text);
}
system("pause");
}