.

mpiMotorPositionFeedbackOffsetGet

Declaration

mpiMotorPositionFeedbackOffsetGet(MPIMotor       motor,
                                  double         *offset)
  Required Header: stdmpi.h

Description

mpiMotorPositionFeedbackOffsetGet retrieves the value stored in the encoder associated with motor and puts in the location pointed to by offset.

NOTE: If you are using an S200 drive, it requires an FPGA C0FE0036_0400_02_08 or later.

 
Return Values
MPIMessageOK  
MEIMotorMessagePOSITION_FEEDBACK_OFFSET_UNSUPPORTED  
MEIMotorMessagePOSITION_FEEDBACK_OFFSET_UNINITIALIZED  

Sample Code

This code retrieves the offset value previously stored in a motor’s encoder and uses it to set the origin position for an axis.

/* creation of axis and motor objects assumed */
double offset;
mpiMotorPositionFeedbackOffsetGet(motor, &offset);
mpiAxisOriginSet(axis, offset);

See Also

mpiAxisOriginSet | mpiMotorPositionFeedbackOffsetSet

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2010 Motion Engineering