meiMotorEndcoderInit

Declaration
long meiMotorEncoderInit(MPIMotor       motor,
                         MEIMotorOutput output,
                         MPIObjectMap   map)            
Required Header stdmei.h
Description

MotorEncoderInit inititalizes one or more absolute encoders associated with the specified MPIObjectMap map, using an output signal associated with the motor.

Return Values
MPIMessageOK if meiMotorEncoderInit(...) successfully initializes absolute encoder(s).
MEIMotorMessage ABS_ENCODER_FAULT Returned when a protocol error occurs during the serial data transmission from the drive to controller.
MEIMotorMessage ABS_ENCODER_TIMEOUT Returned when the controller does not receive serial data from the drive.
See Also MPIObjectMap | meiMotorEncoderInit