You're reading the documentation for an older, but still supported version (GL013300).
For information on the latest version, please have a look at GL013301.

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 (line 991)

bool system_shut_down() { return _system_shut_down(_rbtCtrl); };

Parameter
None

Return

Value

Type

Description

0

int

Error — failed to shut down the robot controller system.

1

int

Success — the robot controller has been successfully shut down.

Example

// Ensure robot motion is stopped before shutdown
drfl.stop();

// Shutdown the controller system
bool bShutdown = drfl.system_shut_down();
if (bShutdown) {
    // Successfully shut down the robot system
    // Proceed with application termination
} else {
    // Handle shutdown failure
}

This example safely stops robot motion before calling system_shut_down(), then proceeds with controller shutdown and application termination.