Skip to main content

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 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
rangeNRC_RobotRangeLimitSee 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