ROBOT_LED_CONFIG

This structure defines the LED behavior configuration for the robot controller. It determines the LED color rules and mappings according to different safety states.

BYTE#

Field Name

Data Type

Value

Remarks

0

_szLedRule

unsigned char

LED control rule indicator (used to define LED operation mode)

1

_szStateColor[SAFETY_STATE_LAST][2]

unsigned char[19][2]

LED color mapping table for each safety state.
The first dimension (19) corresponds to SAFETY_STATE_LAST
The second dimension defines two alternating colors per state:
[][0] → Color 1, [][1] → Color 2

39

_szCommandColor

unsigned char

LED color setting used for command or override state

Total size: 40 bytes

Defined in: DRFS.h

typedef struct _ROBOT_LED_CONFIG
{
    unsigned char _szLedRule;                                  /* LED control rule */
    unsigned char _szStateColor[SAFETY_STATE_LAST][2];         /* [state][0]: color1, [state][1]: color2 */
    unsigned char _szCommandColor;                             /* LED color for command state */
} ROBOT_LED_CONFIG, *LPROBOT_LED_CONFIG;