Skip to content

Calibration

Tool Calibration

Teach pendant Tool Calibration interface used to set tool calibration points

0x3801 TOOLCALIBRATION_SET

Set tool calibration

Request Parameters:

ParameterTypeDescription
toolNumintTool number
calibrationPointNumintSet 6-point or 7-point calibration
json
{
  "toolNum": 2,
  "calibrationPointNum": 6
}

0x3804 TOOLCALIBRATION_RESULT

Calibration calculation complete response

Response Parameters:

ParameterTypeDescription
resultboolWhether calculation succeeded
json
{
  "result": true
}

Teach pendant displaying the tool calibration calculation result after the 6-point or 7-point calibration completes


0x3802 TOOLCALIBRATION_INQUIRE

Query calibration point data

Request Parameters:

ParameterTypeDescription
pointNumintIndex 0~6
toolNumintTool number
json
{
  "pointNum": 2,
  "toolNum": 1
}

0x3803 TOOLCALIBRATION_RESPOND

Return calibration point data

Response Parameters:

ParameterTypeDescription
pointNumintIndex 0~6
posarray[6]Position data [x,y,z,rx,ry,rz]
json
{
  "pointNum": 2,
  "pos": [0, 0, 0, 0, 0, 0]
}

0x3815 TOOL_CALIBRATION_POINTS_STATUS_INQUIRE

Query calibration status

Request Parameters:

ParameterTypeDescription
toolNumintTool number
json
{
  "toolNum": 2
}

0x3816 TOOL_CALIBRATION_POINTS_STATUS_RESPOND

Return calibration status

Response Parameters:

ParameterTypeDescription
statusarray[7]Calibration status: 1=calibrated, 0=pending calibration
json
{
  "status": [1, 0, 1, 0, 1, 0, 1]
}

0x3817 TOOL_CALIBRATION_POINTS_STATUS_CLEAR

Clear calibration

Request Parameters:

ParameterTypeDescription
pointNumintIndex 0~6
toolNumintTool number
json
{
  "pointNum": 2,
  "toolNum": 1
}

Teach pendant dialog confirming clearing of an existing tool calibration record by point and tool number


0x3805 TOOLPARAMETER_SET

Set tool parameters

Request Parameters:

ParameterTypeDescription
tool.AfloatRotation angle around A axis
tool.BfloatRotation angle around B axis
tool.CfloatRotation angle around C axis
tool.notestringAnnotation
tool.payload_inertiafloatPayload inertia
tool.payload_massfloatPayload mass
tool.payload_mass_center_XfloatPayload center of mass X
tool.payload_mass_center_YfloatPayload center of mass Y
tool.payload_mass_center_ZfloatPayload center of mass Z
tool.xfloatX axis offset
tool.yfloatY axis offset
tool.zfloatZ axis offset
toolNumintTool number
json
{
  "tool": {
    "A": 3.0,
    "B": 3.0,
    "C": 3.0,
    "note": "",
    "payload_inertia": 5.0,
    "payload_mass": 4.0,
    "payload_mass_center_X": 6.0,
    "payload_mass_center_Y": 7.0,
    "payload_mass_center_Z": 8.0,
    "x": 1.0,
    "y": 2.0,
    "z": 3.0
  },
  "toolNum": 1
}

0x3806 TOOLPARAMETER_INQUIRE

Query tool parameters

Request Parameters:

ParameterTypeDescription
toolNumintTool number
json
{
  "toolNum": 2
}

0x3807 TOOLPARAMETER_RESPOND

Return tool parameters

Response format same as 0x3805


0x380A TOOLNUMBER_SWITCH

Switch tool

Request Parameters:

ParameterTypeDescription
robotintRobot number 1-4
curToolNumintCurrent tool number
json
{
  "robot": 1,
  "curToolNum": 2
}

0x380B TOOLNUMBER_INQUIRE

Query current tool

Request Parameters:

ParameterTypeDescription
robotintRobot number 1-4
json
{
  "robot": 1
}

0x380C TOOLNUMBER_RESPOND

Return current tool

Response Parameters:

ParameterTypeDescription
robotintRobot number 1-4
curToolNumintCurrent tool number
json
{
  "robot": 1,
  "curToolNum": 2
}

0x3812 TOOL_CALIBRATION_POINTS_POS_INQUIRE

Query calibrated point data

Request Parameters:

ParameterTypeDescription
pointNumintIndex 0~6, total 7 points
toolNumintTool number
json
{
  "pointNum": 0,
  "toolNum": 1
}

0x3813 TOOL_CALIBRATION_POINTS_POS_RESPOND

Return calibrated point data

Response Parameters:

ParameterTypeDescription
pointNumintIndex 0~6
posarray[6]Position data [x,y,z,rx,ry,rz]
json
{
  "pointNum": 0,
  "pos": [0, 0, 0, 0, 0, 0]
}

Teach pendant Tool Calibration interface showing stored calibration point positions [x,y,z,rx,ry,rz] for each point


User Coordinate Calibration

0x3C01 USERCALIBRATION_CALC

User coordinate calibration set

Request Parameters:

ParameterTypeDescription
userNumintUser coordinate number
json
{
  "userNum": 1
}

0x3C02 USERCALIBRATION_RESULT

User coordinate calibration result return

Response Parameters:

ParameterTypeDescription
resultbooltrue=calibration success, false=calibration failure
status.OboolO point status
status.XboolX point status
status.YboolY point status
json
{
  "result": true,
  "status": {
    "O": false,
    "X": false,
    "Y": false
  }
}

0x3C03 USERCALIBRATION_RECORD

Mark user origin, X, Y values

Request Parameters:

ParameterTypeDescription
userNumintUser coordinate number
inquirestringValues "O", "X", "Y" or "OXY"
posZeroarray[6]Mark origin (radians), present when inquire is "OXY"
posXarray[6]Mark X value (radians), present when inquire is "OXY"
posYarray[6]Mark Y value (radians), present when inquire is "OXY"
json
{
  "userNum": 1,
  "inquire": "X",
  "posZero": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
  "posX": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
  "posY": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
}

0x3C04 USERCALIBRATION_RECORD_RESPOND

Mark result response

Response Parameters:

ParameterTypeDescription
userNumintUser coordinate number
inquirestringValues "O", "X", "Y"
statusboolStatus
posarray[6]Position data in radians
posDegarray[6]Position data in degrees
json
{
  "userNum": 1,
  "inquire": "X",
  "status": true,
  "pos": [0, 0, 0, 0, 0, 0],
  "posDeg": [0, 0, 0, 0, 0, 0]
}

Teach pendant User Coordinate Calibration interface for marking the origin O and X/Y axis points


0x3C07 USERPARAMETER_SET

User coordinate set

Request Parameters:

ParameterTypeDescription
posarray[6]User coordinate position [x,y,z,rx,ry,rz]
userNumintUser coordinate number
json
{
  "pos": [460.0, 0.0, 637.0, 0.0, 3.10, 3.0],
  "userNum": 1
}

0x3C08 USERPOSDATA_INQUIRE

User coordinate query

Request Parameters:

ParameterTypeDescription
userNumintUser coordinate number
inquirestringQuery type: "Calibration", "O", "X", "Y"
json
{
  "userNum": 1,
  "inquire": "Calibration"
}

0x3C09 USERPOSDATA_RESPOND

User coordinate query response

Response Parameters:

ParameterTypeDescription
userNumintUser coordinate number
inquirestringQuery type
statusboolStatus
posarray[6]Position data in radians
posDegarray[6]Position data in degrees
json
{
  "userNum": 1,
  "inquire": "Calibration",
  "status": false,
  "pos": [0, 0, 0, 0, 0, 0],
  "posDeg": [0, 0, 0, 0, 0, 0]
}

0x3C0A USERCOORDINATE_SWITCH

User coordinate number set

Request Parameters:

ParameterTypeDescription
robotintRobot number 1-4
userNumintUser coordinate number
json
{
  "robot": 1,
  "userNum": 1
}

0x3C0B USERCOORDINATE_INQUIRE

User coordinate number query

Request Parameters:

ParameterTypeDescription
robotintRobot number 1-4
json
{
  "robot": 1
}

0x3C0C USERCOORDINATE_RESPOND

User coordinate number query response

Response Parameters:

ParameterTypeDescription
robotintRobot number 1-4
curUserNumintCurrent user coordinate number
json
{
  "robot": 1,
  "curUserNum": 1
}

0x3C0D USERANNOTATION_SET

User annotation set

Request Parameters:

ParameterTypeDescription
notestringAnnotation content
userNumintUser coordinate number
json
{
  "note": "Nabot",
  "userNum": 1
}

0x3C0E USERANNOTATION_INQUIRE

User annotation query

Request Parameters:

ParameterTypeDescription
userNumintUser coordinate number
json
{
  "userNum": 1
}

0x3C0F USERANNOTATION_RESPOND

User annotation query response

Response format same as 0x3C0D

Teach pendant User Coordinate annotation input dialog for entering the user coordinate note text


20-Point Calibration

0x7101 CALIBRATION_20POINTS_SET

20-point calibration complete, send calibration data

Request Parameters:

ParameterTypeDescription
calNumintCalibration number (currently default value)
noCalZerobool20-point does not calibrate zero point
json
{
  "calNum": 1,
  "noCalZero": true
}

0x7102 CALIBRATION_20POINTS_INQUIRE

Click calibration point data

Request Parameters:

ParameterTypeDescription
toolNumintTool coordinate system 1-3
pointNumintValue 0~19, total 20 points
json
{
  "toolNum": 1,
  "pointNum": 0
}

0x7103 CALIBRATION_20POINTS_RESPOND

Return calibration point data

Response Parameters:

ParameterTypeDescription
pointNumintValue 0~19, total 20 points
posarray[6]Point data [x,y,z,rx,ry,rz]
json
{
  "pointNum": 0,
  "pos": [0, 0, 0, 0, 0, 0]
}

0x7104 CALIBRATION_20POINTS_RESULT

Calibration calculation complete

Response Parameters:

ParameterTypeDescription
resultboolWhether calculation is correct
distancefloatCalculated distance value
json
{
  "result": true,
  "distance": 2.04
}

Teach pendant 20-Point Calibration interface showing the calculated calibration result with distance value


0x7105 CALIBRATION_20POINTS_RESULT_APPLY

Apply calibration result as tool

Request Parameters:

ParameterTypeDescription
toolNumintTool coordinate system 1-3
json
{
  "toolNum": 1
}

0x7106 CALIBRATION_20POINTS_RESULT_APPLY_OK

Set success response

Response Parameters:

ParameterTypeDescription
applyboolWhether setting succeeded
json
{
  "apply": true
}

0x7107 CALIBRATION_20POINTS_STATUS_INQUIRE

Query calibration point status

Request Parameters:

ParameterTypeDescription
calNumintTool number
json
{
  "calNum": 1
}

Note: The underlying layer shares calibration point status and does not distinguish tool numbers


0x7108 CALIBRATION_20POINTS_STATUS_RESPOND

Return calibration point status

Response Parameters:

ParameterTypeDescription
statusarray[20]Calibration point status: 1=calibrated, 0=not calibrated
json
{
  "status": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}

0x7109 CALIBRATION_20POINTS_STATUS_CLEAR

Clear calibration status

Request Parameters:

ParameterTypeDescription
pointNumintValue: 0-19 single point, 20=all points
json
{
  "pointNum": 0
}

0x710a CALIBRATION_20POINTS_POS_INQUIRE

Query calibrated point data

Request Parameters:

ParameterTypeDescription
pointNumintValue 0~19, total 20 points
json
{
  "pointNum": 0
}

0x710b CALIBRATION_20POINTS_POS_RESPOND

Return calibrated point data

Response Parameters:

ParameterTypeDescription
pointNumintValue 0~19, total 20 points
posarray[6]Point data [x,y,z,rx,ry,rz]
json
{
  "pointNum": 0,
  "pos": [0, 0, 0, 0, 0, 0]
}

0x710c CALIBRATION_20POINTS_POS_RUN

Move to calibration point (not yet available)

Request Parameters:

ParameterTypeDescription
robotintRobot number
json
{
  "robot": 1
}

0x710d CALIBRATION_20POINTS_CANCALIBRATION_INQUIRE

Get whether calibration interface can be opened

No request parameters


0x710e CALIBRATION_20POINTS_CANCALIBRATION_RESPOND

Whether calibration interface can be opened

Response Parameters:

ParameterTypeDescription
canCalibrationboolWhether it can be opened
json
{
  "canCalibration": true
}

Teach pendant 20-Point Calibration interface prompting whether calibration can be started or has been completed


4-Point Calibration (SCARA)

0x7201 CALIBRATION_4POINTS_SET

Set distance input value, calculate and return result

Request Parameters:

ParameterTypeDescription
ParamOf4Pointsarray[2]L1, L2 rod length
json
{
  "ParamOf4Points": [0, 0]
}

0x7202 CALIBRATION_4POINTS_INQUIRE

Click calibration button

Request Parameters:

ParameterTypeDescription
pointNumintValue 0~3, total 4 points
statusint1=marked, 0=unmarked
json
{
  "pointNum": 0,
  "status": 1
}

0x7203 CALIBRATION_4POINTS_RESPOND

Return calibration point data

Response Parameters:

ParameterTypeDescription
pointNumintValue 0~3, total 4 points
posarray[6]Point data [x,y,z,rx,ry,rz]
json
{
  "pointNum": 0,
  "pos": [0, 0, 0, 0, 0, 0]
}

0x7204 CALIBRATION_4POINTS_RESULT

Calculation complete

Response Parameters:

ParameterTypeDescription
resultboolCalculation result
lengtharray[2]Length [L1, L2]
dthetaarray[2]Offset angle
json
{
  "result": true,
  "length": [0, 0],
  "dtheta": [0, 0]
}

0x7205 CALIBRATION_4POINTS_RESULT_APPLY

Fill result into DH parameters

No request parameters


0x7206 CALIBRATION_4POINTS_RESULT_APPLY_OK

Set success response

Response Parameters:

ParameterTypeDescription
applyboolWhether setting succeeded
json
{
  "apply": true
}

0x7207 CALIBRATION_4POINTS_STATUS_INQUIRE

Query 4-point calibration point status

No request parameters


0x7208 CALIBRATION_4POINTS_STATUS_RESPOND

Return 4-point calibration status

Response Parameters:

ParameterTypeDescription
resultboolCalculation result
statusarray[4]Calibration point status: 1=calibrated, 0=not calibrated
lengtharray[2]Length [L1, L2]
dthetaarray[2]Offset angle
json
{
  "result": true,
  "status": [0, 0, 0, 0],
  "length": [0, 0],
  "dtheta": [0, 0]
}