mpiMotorAmpEnableGet

Declaration
long mpiMotorAmpEnableGet(MPIMotor  motor,
                          long      *ampEnable) 
Required Header stdmpi.h
Description

MotorAmpEnableGet 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 if MotorAmpEnableGet successfully writes the Motor's amp enable output state to the location
See Also MPIMotorConfig | mpiMotorAmpEnableSet