Axis Motion Termination Functions.
More...
Axis Motion Termination Functions.
- Todo:
- This group name is duplicated in pdf manual.
Check if need to rename.
The function can be called to halt the axis motion.
- 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:
- When an axis is executing the point-to-point motion or JOG motion, the function can be called to stop the axis motion. The drive will decrease the velocity from the configuration in the axis parameter AXP_DEC to this in the AXP_V_BASE.
- If the axis is homing, the function will return the error code.
- If the axis is in the axis state_STATE_STOPPING, AXIS_STATE_STOPPED or AXIS_STATE_ERROR, the function will return the error code.
- If the axis is in the axis state_STATE_DISABLE or AXIS_STATE_STAND_STILL, the function will not return any error code.
- If the axis parameter AXP_BUFF_PARAM is set to aborting, the function can be called to stop the axis motion normally. If the axis parameter AXP_BUFF_PARAM is set to buffered, the function can be called to wait the bit 8 of axis status to 1 (the completion of the previous motion) and then to stop the axis motion normally.
- After the function is called and the motion is stopped successfully, the axis state will transfer to AXIS_STATE_DISCRETE_MOTION. After the axis is stopped, the bit 8 and 9 of axis status will become 1, and the axis state will transfer to normal excitation (AXIS_STATE_STAND_STILL).
Examples:
Reference:
The function can be called to halt the motions of all axes in a specified device normally.
- Parameters
-
- 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:
The usage is similar to this of NMC_AxisHalt(). The function can be called to stop the motions of all axes in a specified device normally.
Examples:
Reference:
NMC_AxisHalt()
The function can be called to stop the axis motion.
- 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:
- Whether an axis is executing each type of motion and such axis motion shall be stopped for some undesired cases, the function can be called to perform the forced stop procedure. The drive will decrease the velocity from the configuration in the axis parameter AXP_STOP_PROF_DEC to this in the AXP_V_BASE.
- If the axis is homing, the function will return the error code.
- After the function is called to perform the forced stop procedure and the axis has not stopped, the axis state will transfer to AXIS_STATE_STOPPING. After the axis is stopped, the bit 9 of axis status will become 1, and the axis state will transfer to AXIS_STATE_STOPPED.
- If the axis state is AXIS_STATE_STAND_STILL, it will transfer to AXIS_STATE_STOPPED after the function is called.
- After the function is called to perform the forced stop procedure and the axis has stopped, the axis is prohibited to execute any axis motion, until NMC_AxisResetState() is called to reset the axis to normal excitation (AXIS_STATE_STAND_STILL).
Examples:
Reference:
NMC_AxisResetState()
The function can be called to stop the motions of all axes in a specified device forcedly.
- Parameters
-
- 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:
The usage is similar to this of NMC_AxisStop(). The function can be called to stop the motions of all axes in a specified device forcedly.
Examples:
Reference:
NMC_AxisStop()