MPI 04.00 Reference >> mpiMotion
mpiMotionConfigGet
Declaration
int32_t mpiMotionConfigGet(MPIMotion motion, MPIMotionConfig *config)
Required Header: stdmpi.h
Change History: Modified in 04.00.
Description
mpiMotionConfigGet gets the configuration of a Motion object (motion) and puts (writes) it in the structure pointed to by config.
motion | A handle to an Motion object. |
---|---|
*config | A pointer to the MPIMotionConfig structure. |
Return Values |
---|
MPIMessageOK |
Sample Code
void modifyFeedrate(MPIMotion motion, double normalFeedrate, double pauseFeedrate) MPIMotionConfig motionConfig; int32_t returnValue; returnValue = mpiMotionConfigGet(motion, &motionConfig); msgCHECK(returnValue); printf("Before: normalFeedrate %g, pauseFeedrate %g\n",motionConfig.normalFeedrate,motionConfig.pauseFeedrate); motionConfig.normalFeedrate = normalFeedrate; motionConfig.pauseFeedrate = pauseFeedrate; returnValue = mpiMotionConfigSet(motion,&motionConfig); msgCHECK(returnValue); printf("After: normalFeedrate %g, pauseFeedrate %g\n", motionConfig.normalFeedrate, motionConfig.pauseFeedrate); }