How does one properly use InterruptUserDataGet()?
The example code in the doc seems only to pertain to user limits (the function isn’t invoked in the sample).
In particular, for a RSIEventTypeLIMIT_ERROR, I want to get the commanded and actual positions (that caused the error), and retrieving the instantaneous values for those doesn’t always get the data that caused the problem.
Are there predefined “user data” items for each interrupt type?
I see that InterruptUserDataDoubleGet()does have a sample that employs the API function. What I don’t see is a description of which indices exist for which event types.
Good questions. At present the RapidCode API only gives you programmable access to the Interrupt UserData for UserLimits with MotionController::UserLimitInterruptUserDataAddressSet().
In theory, each type of Interrupt supports up to five unique UserData values, so we’ll need to add the RapidCode API to allow you to specify the UserData addresses for various interrupt types. How’s that sound?