Skip to content

Home Position ​

Overview ​

The host computer and controller communicate through the home position protocol for setting and querying robot home position, home IO parameters, safety position, and other related configurations.


1. Host Sets Home Position ​

Command Word: 0x3660

Request Parameters ​

ParameterTypeLengthDescription
posdouble[]7Robot home position list
posSyncdouble[]5Robot external axis home position list
robotint1Current robot number, range [1,4]

Request Example ​

json
{
  "pos": [10.20, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
  "posSync": [0.0, 0.0, 0.0, 0.0, 0.0],
  "robot": 1
}

2. Host Queries Home Position ​

Command Word: 0x3661

Request Parameters ​

ParameterTypeDescription
robotintCurrent robot number, range [1,4]

Request Example ​

json
{
  "robot": 1
}

3. Controller Replies Home Position to Host ​

Command Word: 0x3662

Response Parameters ​

ParameterTypeLengthDescription
deviationdouble[]7Robot each axis safety range, range [0,10]
deviationSyncdouble[]5Robot external axis each axis safety range, range [0,10]
inPortint1Start DIN
inValueint1Start DIN parameter, range [0,1]
outPortint1End DOUT
posdouble[]7Robot home position list
posSyncdouble[]5External axis home position list
returnWayint1Interpolation method: 0-Joint interpolation, 1-Linear interpolation
robotint1Current robot number, range [1,4]
safeEnablebool1Safety enable: when safety enable is active, the robot must be manually returned to the safety position before it can run again
selectPiontOrFileint1Robot home mode: 0-Home position, 1-Home program

Response Example ​

json
{
  "deviation": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
  "deviationSync": [1.0, 1.0, 1.0, 1.0, 1.0],
  "inPort": 0,
  "inValue": 1,
  "outPort": 0,
  "pos": [10.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
  "posSync": [0.0, 0.0, 0.0, 0.0, 0.0],
  "returnWay": 0,
  "robot": 1,
  "safeEnable": false,
  "selectPiontOrFile": 0
}

4. Host Sets Home IO Parameters ​

Command Word: 0x3663

Request Parameters ​

ParameterTypeDescription
inPortintStart DIN
inValueintStart DIN parameter, range [0,1]
outPortintEnd DOUT
returnWayintInterpolation method: 0-Joint interpolation, 1-Linear interpolation
robotintCurrent robot number, range [1,4]
safeEnableboolSafety enable: when safety enable is active, the robot must be manually returned to the safety position before it can run again
selectPiontOrFileintRobot home mode: 0-Home position, 1-Home program

Request Example ​

json
{
  "inPort": 0,
  "inValue": 1,
  "outPort": 0,
  "returnWay": 0,
  "robot": 1,
  "safeEnable": false,
  "selectPiontOrFile": 0
}

5. Host Sets Home Position Safety Position ​

Command Word: 0x3664

Request Parameters ​

ParameterTypeLengthDescription
deviationdouble[]7Robot each axis safety range, range [0,10]
deviationSyncdouble[]5Robot external axis each axis safety range, range [0,10]
robotint1Current robot number, range [1,4]

Request Example ​

json
{
  "deviation": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
  "deviationSync": [1.0, 1.0, 1.0, 1.0, 1.0],
  "robot": 1
}

6. Controller Replies Host That Current Position Is Not at Safety Position ​

Command Word: 0x3665

Response Parameters ​

ParameterTypeLengthDescription
currentPosdouble[]6Current robot position list, length is the number of axes of the current robot
isSyncbool1Whether it is an external axis
robotint1Current robot number, range [1,4]
safePosdouble[]6Home position list

Response Example ​

json
{
  "currentPos": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
  "isSync": false,
  "robot": 1,
  "safePos": [10.2, 0.0, 0.0, 0.0, 0.0, 0.0]
}

Home Position Safety Position (Supplementary returnway Field Description) ​

In home position settings, the returnway field represents the robot home mode:

  • 0: Home position
  • 1: Home program
🤖 AI assistants / automation: start with the Agent Development Guide and Pre-generation Checklist (Chinese); machine-readable entry: /llms.txt; plain-text version: swap .html for .md in the URL