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.
system_shut_down
This function shuts down the connected robot controller system. It is typically used to safely power down the controller after all robot operations and background tasks have been completed.
Definition
DRFLEx.h within class CDRFLEx, public section
bool system_shut_down() { return _system_shut_down(_rbtCtrl); };
Parameter
None
Return
Value |
Type |
Description |
|---|---|---|
1 |
int |
Always returned. |
Available in Auto mode only. Always returns true; the return value does not indicate whether the controller accepted the shutdown request. The mode check uses the value returned by get_robot_mode.
Example
// Ensure robot motion is stopped before shutdown
drfl.stop();
// Shutdown the controller system
// The return value is always true
drfl.system_shut_down();
This example safely stops robot motion before calling system_shut_down(), then proceeds with controller shutdown and application termination.