Skip to main content

NRC_GetCurrentSyncPos(NRC_COORD coord, NRC_SyncPosition& position)

Get the current position of the external axis

This function can get the position of an external axis in the coordinate system specified by "coord". The position data is returned through the parameter "position" by reference

Type

int=>Get the current position of the external axis

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_COORDNRC_COORD
positionNRC_SyncPosition&NRC_SyncPosition

Sample code

NRC_SyncPosition synctarget2;
NRC_GetCurrentSyncPos(NRC_ACS, NRC_SyncPosition& position);