Errors
Clear Error
Used to clear servo errors.
Clear Servo Error
Command: 0x1100
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number to operate, range [1, 4] |
json
{
"robot": 1
}Controller Reply
Command: 0x1101
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [1, 4] |
| clearErrorFlag | bool | Whether the clear was successful; true means servo error cleared successfully, false means clear failed |
json
{
"robot": 1,
"clearErrorFlag": true
}Message Prompts
The controller sends error prompts/warning prompts/message prompts/popup prompts to the host computer.
Error Prompt
Command: 0x1110
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [0, 4]; 0 means no robot type selected or the error content is not related to a robot |
| kind | int | Popup prompt type: 0 for message, 1 for warning, 2 for error |
| data | string | Message bar content; different errors correspond to different content |
| code | int | Message code |
| param | int[] | Message content parameters; the number varies depending on the specific code, with 5 reserved |
json
{
"code": 28680,
"data": "Instruction [0x5743] does not exist",
"kind": 2,
"param": [22339, 3],
"robot": 0
}Warning Prompt
Command: 0x1111
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [0, 4]; 0 means no robot type selected or the warning content is not related to a robot |
| kind | int | Popup prompt type: 0 for message, 1 for warning, 2 for error |
| data | string | Message bar content; different warnings correspond to different content |
| code | int | Message code |
| param | int[] | Message content parameters; the number varies depending on the specific code, with 5 reserved |
json
{
"code": 16385,
"data": "Robot 1 parameter configuration file does not exist, has been created, please configure parameters",
"kind": 1,
"param": [1],
"robot": 1
}Message Prompt
Command: 0x1112
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [0, 4]; 0 means no robot type selected or the message content is not related to a robot |
| kind | int | Popup prompt type: 0 for message, 1 for warning, 2 for error |
| data | string | Message bar content; different messages correspond to different content |
| code | int | Message code |
json
{
"code": 21764,
"data": "Auto backup successful",
"kind": 0,
"robot": 0
}Popup Prompt
Command: 0x1113
| Field | Type | Description |
|---|---|---|
| count | int | Number of popup buttons, up to 3 |
| text1 | string | Main text displayed in the center of the popup |
| text2 | string | Text for button 1 |
| text3 | string | Text for button 2 |
| text4 | string | Text for button 3 |
| kind | int | Popup prompt type: 0 for message, 1 for warning, 2 for error |
| node | int | Robot number, range [1, 4] |
| Tips | bool | Popup display; true means show popup |
json
{
"count": 1,
"text1": "Example",
"text2": "Example",
"text3": "Example",
"text4": "Example",
"kind": 1,
"node": 1,
"Tips": true
}Popup Interaction Feedback
Set corresponding configurations based on the user's operation on the popup.
Command: 0x1114
| Field | Type | Description |
|---|---|---|
| node | int | Robot number, range [1, 4] |
| option | int | Corresponding to popup option 1-3 content, range [1, 3] |
json
{
"node": 1,
"option": 1
}