Get the number (or index) of the object (Axis, Motor, etc) that generated the interrupt.
- Description:
- InterruptSourceNumberGet returns the number of the object (Axis, Motor, etc) that generated the interrupt.
- Returns
- (int32) Index or number of the object that generated the interrupt.
- Sample Code:
-
- See also
- InterruptSampleTimeGet
- Note
- For UserLimit objects, RapidCode internally uses one UserLimit per Axis. To determine which UserLimit triggered, you must subtract the AxisCount.
- Examples
- ControllerInterrupts.cpp, UserLimitCommandPositionDirectSet.cs, UserLimitDigitalInputEStopStorePosition.cs, UserLimitDigitalInputOneCondition.cpp, UserLimitDigitalInputOneCondition.cs, UserLimitDigitalInputTwoCondition.cpp, UserLimitPositionOneCondition.cpp, and UserLimitPositionOneCondition.cs.