NRC_SetRobotRangeLimit(NRC_RobotRangeLimit range)
Set robot range limit
Please set this parameter when the servo is stopped or in a ready state
Type
int =>Set robot range limit
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 |
---|---|---|
range | NRC_RobotRangeLimit | See NRC_RobotRangeLimit |
Sample code
NRC_RobotRangeLimit robotRangeLimit = { false, 1000, true, -500,true , 300, true, -1000, false, 0, false, 3000 };//Range limit configuration
NRC_SetRobotRangeLimit(robotRangeLimit);//Set robot range limit