RMP Motion Controller
10.5.2
The RMP Motion Controller APIs
MotionController
NetworkNode
Axis
MultiAxis
IOPoint
Cartesian
RsiError
Contact
Support
RMP
◆
ThrowExceptions()
void ThrowExceptions
(
bool
state
)
inherited
Description:
ThrowExceptions configures a class to throw execptions.
Parameters
state
If state is true, any methods in this class will throw exceptions if any errors occur. If state is false, the methods will log software errors for reading at a later time
Remarks
This function is also available in
RapidSequencer
.
Sample Code:
Error Logging
// Turn off exceptions. Exceptions will be logged as RsiError objects.
axis.
ThrowExceptions
(
false
);
// Do something that will cause an error (zero acceleration).
axis.
MoveVelocity
(0.0, 0.0);
while
(axis.
ErrorLogCountGet
() > 0)
{
RsiError error = axis.
ErrorLogGet
();
Console.WriteLine(error.Message);
}
Note
All classes will throw exceptions by default.
See also
ErrorLogGet
Examples
HelperFunctions.cs
, and
Log.cs
.
RSI
RapidCode
Cartesian
Robot
Generated by
1.10.0