#include "rsi.h"
#include "SampleAppsHelper.h"
void controllerInterruptsMain()
{
const int TIMEOUT = (5000);
controller->InterruptEnableSet(true);
try
{
{
interruptType = controller->InterruptWait(TIMEOUT);
{
printf("IRQ %ld\n", interruptType);
printf("%s\n", controller->InterruptNameGet());
printf("InterruptSourceNumber = %ld\n", controller->InterruptSourceNumberGet());
printf("InterruptSampleTimer = %ld\n", controller->InterruptSampleTimeGet());
printf("\n");
}
else
{
printf("Timeout waiting for interrupts...\n");
}
}
}
{
printf(
"\n%s\n", err.
text);
}
controller->Delete();
system("pause");
}
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 ...
RSIEventType
Event Types or Status Bits.
@ RSIWaitPOLL
return immediately, use polling
static void CheckErrors(RapidCodeObject *rsiObject)
Checks for errors in the given RapidCodeObject and throws an exception if any non-warning errors are ...
static void StartTheNetwork(MotionController *controller)
Starts the network communication for the given MotionController.