MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
InterruptEnableSet()
void InterruptEnableSet
(
bool
enable
)
pure virtual
Control interrupts for this class.
Description:
InterruptEnableSet - If true, this controller will generate interrupts. If false, the controller will not generate interrupts.
Parameters
enable
True = interrupts are enabled.
Sample Code:
We plan to use interrupts for this controller.
// -- C++ -- //
controller->
InterruptEnableSet
(
true
);
// -- C# -- //
controller.
InterruptEnableSet
(
true
);
Note
This will buffer Interrupts from Axes & MultiAxes too. It may appear you have a memory leak if you have this enabled and aren't using InterruptWait sufficiently to empty the growing buffer.
See also
InterruptWait
Implements
RapidCodeInterrupt
.
Examples
ControllerInterrupts.cpp
,
UserLimitCommandPositionDirectSet.cs
,
UserLimitDigitalInputEStopStorePosition.cs
,
UserLimitDigitalInputOneCondition.cs
,
UserLimitDigitalInputTwoCondition.cpp
,
UserLimitGainChangeBasedOnPosition.cpp
,
UserLimitPositionOneCondition.cpp
, and
UserLimitPositionOneCondition.cs
.