Variables
Get Current Position
Command Word: 0x6000
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
{
"robot": 1
}Controller Response
Command Word: 0x6001
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| globalPosition | object | Global position variable object |
| note | object | Note object |
Each point data in globalPosition is of type double[], with the following meaning:
| Index | Description |
|---|---|
| 0 | Coordinate type: 0 Joint, 1 Cartesian, 2 Tool, 3 User |
| 1 | Degree/Radian: 0 Radian, 1 Degree |
| 2 | Left/Right hand: 0 None, 1 Left, 2 Right |
| 3 | Tool coordinate system |
| 4 | User coordinate system |
| 5, 6 | Reserved for extension |
| 7~13 | Robot coordinates (7 values) |
| 14~20 | External axes |
{
"globalPosition": {
"GP0021": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0022": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0023": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0024": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0025": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0026": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0027": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0028": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0029": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0030": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0031": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0032": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0033": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0034": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0035": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0036": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0037": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0038": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0039": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"GP0040": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
},
"note": {
"GP0021": "",
"GP0022": "",
"GP0023": "",
"GP0024": "",
"GP0025": "",
"GP0026": "",
"GP0027": "",
"GP0028": "",
"GP0029": "",
"GP0030": "",
"GP0031": "",
"GP0032": "",
"GP0033": "",
"GP0034": "",
"GP0035": "",
"GP0036": "",
"GP0037": "",
"GP0038": "",
"GP0039": "",
"GP0040": ""
},
"robot": 1
}Set Global Position Variable
Note: If it is a four-axis robot, pad the last two values with 0.
Command Word: 0x6002
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| posName | string | Variable name |
| pos | double[] | Variable data |
| note | string | Note |
{
"robot": 1,
"posName": "GP0001",
"pos": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1, 2, 3.3, 0, 0],
"note": "qqq"
}Query Global Position Variable
Command Word: 0x6003
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| posName | string | Point name |
| initialValue | bool | Initialization, optional to send or not |
{
"robot": 1,
"posName": "GP0001",
"initialValue": true
}Controller Response
Command Word: 0x6004
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| initialValue | bool | Initialization |
| posName | string | Point name |
| posValue | double[] | Point data (radian) |
| posValueDeg | double[] | Point data (degree) |
| note | string | Note |
{
"initialValue": true,
"note": "qqq",
"posName": "GP0001",
"posValue": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"posValueDeg": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"robot": 1
}Local Variables
Local Variable Position P Point Query
Command Word: 0x6010
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [1, 4] |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
{
"robot": 1,
"varname": "P0001",
"initialValue": true
}Controller Response
Command Word: 0x6011
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| jobname | string | Job file name |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
| pos | double[] | Point data in radians |
| posDeg | double[] | Point data in degrees |
{
"robot": 1,
"jobname": "Q1",
"varname": "P0001",
"initialValue": true,
"pos": [0, 0, 1, 2, 3, 4, 5, 6],
"posDeg": [0, 0, 1, 2, 3, 4, 5, 6]
}Local Variable Position E Point Query
Command Word: 0x6012
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [1, 4] |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
{
"robot": 1,
"varname": "E0001",
"initialValue": true
}Controller Response
Command Word: 0x6013
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| jobname | string | Job file name |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
| pos | double[] | Point data in radians |
| posDeg | double[] | Point data in degrees |
{
"robot": 1,
"jobname": "Q1",
"varname": "E0001",
"initialValue": true,
"pos": [0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
"posDeg": [0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
}Local Variable Query
Command Word: 0x6014
| Field | Type | Description |
|---|---|---|
| robot | int | Robot number, range [1, 4] |
| vartype | int | Variable type: 0 int, 1 double, 2 bool, 3 string |
| varname | string | Variable name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
| identify | string | CommandInsert: variable in the insert instruction interface, VariableReview: numeric variable in the monitoring interface |
{
"robot": 1,
"vartype": 1,
"varname": "I001",
"initialValue": true,
"identify": "CommandInsert"
}Controller Response
Command Word: 0x6015
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| jobname | string | Job file name |
| vartype | int | Variable type: 1 bool, 2 int, 3 double |
| varname | string | Variable name |
| value | double | If the variable is a numeric type, transmitted via value |
| string | string | If the variable is a string type, transmitted via string |
| identify | string | CommandInsert: variable in the insert instruction interface, VariableReview: numeric variable in the monitoring interface |
{
"robot": 1,
"jobname": "Q1",
"vartype": 1,
"varname": "I001",
"value": 2,
"string": "i'm a string",
"identify": "CommandInsert"
}Global Variables
Set Global Variable
Command Word: 0x6020
| Field | Type | Description |
|---|---|---|
| varName | string | Variable name |
| varType | int | Variable type: 0 int, 1 double, 2 bool, 3 string |
| varValue | double | Variable value |
| varString | string | Used when varType = 3 for transmission |
| varNote | string | Note |
{
"varName": "GD001",
"varType": 1,
"varValue": 14.0,
"varString": "oooo",
"varNote": "aaa"
}Get Global Numeric Variable
Command Word: 0x6021
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type: 1 bool, 2 int, 3 double |
{
"varType": 1
}Controller Response
Command Word: 0x6022
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type: 1 bool, 2 int, 3 double |
| varNum | int | Number of numeric variables, range [1, 100] |
| varList | array | Variable list |
| varList[].varName | string | Variable name |
| varList[].varValue | double | Variable value |
| varList[].varNote | string | Note |
{
"varType": 1,
"varNum": 2,
"varList": [
{
"varName": "I001",
"varValue": 3,
"varNote": "QQQ"
},
{
"varName": "D002",
"varValue": 8.4,
"varNote": "hhha"
}
]
}Global Variable Note Query
Command Word: 0x6023
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type: 1 bool, 2 int, 3 double |
{
"varType": 1
}Controller Response
Command Word: 0x6024
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type: 1 bool, 2 int, 3 double |
| varNote | object | Variable note object, key is variable name, value is note content |
{
"varNote": {
"GI001": "9999"
},
"varType": 1
}Global External Axis Variables
Set Global External Axis Variable
Command Word: 0x6025
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| varname | string | Point name |
| pos | double[] | Point data, format: point info(7) + robot position(7) + external axis position(5) + reserved(2) |
| note | string | Note |
{
"robot": 1,
"varname": "GE0001",
"pos": [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1, 2.2, 2.3, 2.4],
"note": "qqq"
}Query Global External Axis Variable
Command Word: 0x6026
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value, true: yes, false: no |
{
"robot": 1,
"varname": "GE001",
"initialValue": true
}Controller Response
Command Word: 0x6027
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| varname | string | Point name |
| initialValue | bool | Whether it is an initial value |
| note | string | Note |
| posValue | double[] | GP + external point (degree) |
| posValueDeg | double[] | GP + external point (radian) |
{
"initialValue": true,
"note": "qqq",
"posValue": [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1, 2.2, 2.3, 2.4, 0.0, 0.0],
"posValueDeg": [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1, 2.2, 2.3, 2.4, 0.0, 0.0],
"robot": 1,
"varname": "GE001"
}Get All Global External Axis Points
Command Word: 0x6028
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
{
"robot": 1
}Controller Response
Command Word: 0x6029
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| globalExtPosition | object | Point list, key is variable name, value is double[] |
| note | object | Note list, key is variable name, value is note string |
{
"robot": 1,
"globalExtPosition": {
"GE001": [0, 0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6],
"GE003": [0, 0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
},
"note": {
"GE001": "qqqq",
"GE002": "",
"GE003": "www"
}
}Query Position Under Specified Coordinate System
Command Word: 0x602A
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| name | string | Point name |
| initialValue | bool | Whether it is an initial value |
| targetCoord | int | Target coordinate system type |
{
"initialValue": true,
"name": "GP0001",
"targetCoord": 3
}Controller Response
Command Word: 0x602B
| Field | Type | Description |
|---|---|---|
| robot | int | Select robot, range [1, 4] |
| posName | string | Point name |
| result | int | Whether coordinate system conversion is correct |
| pos | array | Position information, 0~6 info, 7~13 robot body, 14~18 external axes (degree) |
| initialValue | bool | Whether it is an initial value |
{
"robot": 1,
"posName": "GP0001",
"result": 0,
"pos": [0, 0, 0, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"initialValue": true
}Query a Single Global Variable
Command Word: 0x602C
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type |
| varName | string | Variable name |
| identity | string | Source identifier: VariableReview for global variables in the monitoring interface, NumerlcalVarWidget for the global numeric variable interface |
{
"varType": 1,
"varName": "GI001",
"identity": "VariableReview"
}Controller Response
Command Word: 0x602D
| Field | Type | Description |
|---|---|---|
| varType | int | Variable type |
| varName | string | Variable name |
| identity | string | Source identifier |
| varNote | string | Note |
| varValue | double | Variable value |
{
"varType": 1,
"varName": "GI001",
"identity": "VariableReview",
"varNote": "9999",
"varValue": 16.0
}