Axis Returns to Home Functions.
More...
Axis Returns to Home Functions.
Drive an axis to move to the origin (by driver).
- Parameters
-
DevID | Device ID (DevID) |
AxisIndex | Axis Index |
- Returns
- Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.
Usage:
- Before the axis motion, the function may be called to execute the homing procedure of axis in general, in order to drive the axis returns to the origin.
- The parameters related to homing are defined in the axis parameter table, including the homing methods, acceleration, velocity, offset, etc. Among these parameters, the methods shall be determined depended the methods supported by the drive.
- In case of any error occurred in the axis homing procedure, the bit 7 of the axis status will become to 1, and the axis will transfer to error state (AXIS_STATE_ERROR). In the case, after the axis stops completely (which can be determined by checking the bit 9 of axis status is 1), NMC_AxisResetDriveAlm() or NMC_AxisResetState() can be called to reset the axis to the normal state.
- After the axis completes the homing procedure, the bit18 of axis status will become to 1, and axis will transfer to normal excitation (AXIS_STATE_STAND_STILL).
Examples:
Reference:
None.
Set the origin of a single axis in the axis coordination system.
- Parameters
-
DevID | Device ID (DevID) |
AxisIndex | Axis Index |
HomePos | The value to set the origin in the axis coordinate system (ACS). |
- Returns
- Return an error code.
If the function is called successfully, the return value is ERR_NEXMOTION_SUCCESS (0). Otherwise, the return value is an error code. All error codes are defined in the header file, NexMotionError.h.
Usage:
Examples:
Reference:
None.