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.

state_led_reset (Manual Mode)

This section explains how to use state_led_reset during Manual (Teach) operations. This function resets the State LED to its default controller-defined rule. It is typically used when the LED color has been customized (via set_state_led_color) and needs to return to standard behavior reflecting system state.

Typical usage

  • Revert LED behavior after custom manual-mode feedback (e.g., after color change).

  • Restore LED control to the robot controller’s internal rule logic.

  • Use at the end of teaching or before switching to automatic mode.

Example

#include "DRFLEx.h"
#include <iostream>
using namespace std;
using namespace DRAFramework;

int main()
{
    CDRFLEx drfl;
    drfl.open_connection("192.168.137.100");

    if (drfl.state_led_reset())
        cout << "[LED] LED state reset to default controller rule.\n";
    else
        cout << "[ERROR] Failed to reset LED state.\n";

    return 0;
}

When called, this function restores the LED to its controller-managed mode, removing any manual color overrides applied during teaching.

Tips

  • Call after using set_state_led_color to restore default LED behavior.

  • Useful at the end of manual teaching to indicate system standby.

  • Combine with set_state_led_off for clear on/off transitions.