You're reading the documentation for an older, but still supported version (1.33.4).
For information on the latest version, please have a look at 1.33.5.
For information on the latest version, please have a look at 1.33.5.
get_robot_speed_mode
This function returns the current velocity mode (normal mode, deceleration mode) of the robot controller. It is used together with the TOnMonitoringSpeedModeCB callback function.
Definition
DRFLEx.h within class CDRFLEx, public section
SPEED_MODE get_robot_speed_mode() { return _get_robot_speed_mode(_rbtCtrl); };
Parameter
None
Return
Value |
Description |
|---|---|
Refer to the Definition of Enumeration Type |
Example
if (drfl.get_robot_speed_mode() == SPEED_REDUCED_MODE) {
// Changes the speed reduced mode to normal speed mode
drfl.set_robot_speed_mode(SPEED_NORMAL_MODE);
}
This example checks the robot’s speed mode, and if it is in reduced mode, switches it to normal mode for standard motion speed.