Skip to main content

NRC_GetCurrentPos(NRC_COORD coord, NRC_Position& position)

Get the current position

This function retrieves the robot's position in the coordinate system specified by the "coord" parameter, and the position data is returned through the parameter reference "position"

Type

int=>Get the current position

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
coordNRC_COORDCoordinate system
positionNRC_PositionPoints of 6 axes

Sample code

NRC_GetCurrentPos(NRC_MCS, position);//Get the current Cartesian coordinate position and assign it to "position"