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 value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
posNum | int | The number of the calibrated point, parameter range: 1 <= posNum <= 2 |
pos | NRC_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);
}