.

mpiMotorAmpEnableGet

Declaration

long mpiMotorAmpEnableGet(MPIMotor  motor,
                          MPI_BOOL*ampEnable) 
  Required Header: stdmpi.h
Change History: Modified in the 03.03.00

Description

mpiMotorAmpEnableGet gets the state of the amp enable output for a Motor (motor) and writes it in the location pointed to by ampEnable. Note that the actual state of amp enable output also depends upon the actual wiring and the polarity chosen in the instance of the MPIMotorConfig structure.

If "ampEnable" is
Then
FALSE (0) the amp is disabled
TRUE (1) the amp is enabled

 

 
Return Values
MPIMessageOK  

Sample Code



long enable;
returnValue = mpiMotorAmpEnableGet(motor, &enable);
msgCHECK(returnValue);
printf("Motor enable = %d", enable);

See Also

MPIMotorConfig | mpiMotorAmpEnableSet

 

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