Skip to main content

NRC_CalibrationToolCoord_2Pos_SetPos(int posNum, const NRC_Position& pos)

2-point calibration-set point data

Please set this parameter when the servo is stopped or in a ready state

Type

int =>Set point data

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
posNumintThe number of the calibrated point, parameter range: 1 <= posNum <= 2
posNRC_Position&The position of the calibrated point; it needs to be the position in the joint coordinate system

Sample code

NRC_Position pos1={NRC_MCS,395,-1.81881,594.958,3.07933,0.07355,0.098098};
NRC_Position pos2={NRC_MCS,339,19.981,594.958,3.14123,0.035271,0.075413};
NRC_CalibrationToolCoord_2Pos_SetPos(1, pos1);
NRC_CalibrationToolCoord_2Pos_SetPos(2, pos2);
if (NRC_CalibrationToolCoord_2Pos_Cacl() == 0)
{
//Write the calibration result to tool hand 1
NRC_CalibrationToolCoord_2Pos_Save(1);
}