meiMotorDedicatedIoAddrDecode

Declaration
long meiMotorDedicatedIOAddrDecode(MPIMotor    motor,
                                   long        addr,
                                   long*       motorNumber);
Required Header stdmei.h
Description

MotorDedicatedIoAddrDecode takes an addr and decodes which motor's dedicated IO this addr points to, and then sets motorNumber to that motor's motorNumber.

Return Values
MPIMessageOK if motor is a valid handle and addr is a valid address (eg. it is located in the motor memory space on the controller).
See Also