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 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 |
---|---|---|
coord | NRC_COORD | NRC_COORD |
position | NRC_SyncPosition& | NRC_SyncPosition |
Sample code
NRC_SyncPosition synctarget2;
NRC_GetCurrentSyncPos(NRC_ACS, NRC_SyncPosition& position);