MPI 04.00 Reference >> mpiMotion
MPIMotionVelocityBehaviorType
Definition
typedef enum MPIMotionVelocityBehaviorType {
MPIMotionVelocityBehaviorTypeINVALID = -1,
MPIMotionVelocityBehaviorTypeSTART_ERROR_IF_MOVING,
MPIMotionVelocityBehaviorTypeMODIFY,
MPIMotionVelocityBehaviorTypeMODIFY_ERROR_IF_NOT_MOVING, MPIMotionVelocityBehaviorTypeAPPEND_WITHOUT_MOTION_DONE,
MPIMotionVelocityBehaviorTypeEND,
MPIMotionVelocityBehaviorTypeFIRST = MPIMotionVelocityBehaviorTypeINVALID + 1
} MPIMotionVelocityBehaviorType;
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
MPIMotionVelocityBehaviorType is used to specify the type of modify to perform when calling a velocity motion start function with the MPIMotionVelocityAttrMaskBEHAVIOR attribute. By default, calling a motion start function while not moving will start a new move. Calling it while moving will append a new move and generate a Motion Done event between the moves.
| START_ERROR_IF_MOVING | Start a new move. If already moving, generate an error. |
|---|---|
| MODIFY | Interrupt current move and replace parameters. If not moving, start a new motion. |
| MODIFY_ERROR_IF_NOT_MOVING | Interrupt current move and replace parameters. If not moving, generate an error. |
| APPEND_WITHOUT_MOTION_DONE | Start a new move after current move finishes. Do not settle and generate a MOTION_DONE event between the moves. If not moving, return an error. |
