NRC_SetCurrentSyncPosToZeroPos(int axisNum,bool mod)
Set the current position of external axis to zero or clear multiturn value
Please set this parameter when the servo is stopped or in a ready state
It takes about two or three seconds to execute the function
For most types of servos, when executing this function, the servo will be enabled and powered on, please pay attention to safety
Type
int=>Set the current position of external axis to zero or clear multiturn value
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 |
---|---|---|
axisNum | int | The number of the axis to be operated on; when "axisNum" is 0, it indicates all axes. Parameter range: 0 <= axisNum <= total number of external axes |
mod | bool | 0: Set zero; 1: Clear multi-turn value |
Sample code
NRC_SetCurrentSyncPosToZeroPos(1,0);