.. _system_shut_down: 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** |br| ``DRFLEx.h`` within class `CDRFLEx`, public section .. code-block:: cpp bool system_shut_down() { return _system_shut_down(_rbtCtrl); }; **Parameter** |br| None **Return** .. list-table:: :widths: 10 20 70 :header-rows: 1 * - **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 :ref:`get_robot_mode `. **Example** .. code-block:: cpp // 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.