.

mpiMotorAmpEnableSet

Declaration

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

Description

mpiMotorAmpEnableSet sets the state of the amp enable output for a Motor (motor) to 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 will be disabled
TRUE (1) the amp will be enabled

 

 
Return Values
MPIMessageOK  

Sample Code


/* Turn motor off */
returnValue = mpiMotorAmpEnableSet(motor, 0);
msgCHECK(returnValue);

/* Turn motor on */
returnValue = mpiMotorAmpEnableSet(motor,1);
msgCHECK(returnValue);

See Also

MPIMotorConfig | mpiMotorAmpEnableGet

 

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