APIs, concepts, guides, and more

◆ AmpEnableSet() [1/2]

void AmpEnableSet ( bool enable)
AmpEnableSet enables (or disables) all amplifiers.
enabletrue = enable all, false = disable all.
AmpEnableSet(true) does not wait for the amp to become fully enabled. Use the AmpEnableSet(bool, int32_t) overload to wait for the amp to become fully enabled.
For DS402 axes, the RMP firmware will automatically generate an Amp Fault action (default is to Abort) if the AMP_ACTIVE signal does not got high within one second of AmpEnableSet(true). If it fails to enable, the Axis will end in an ERROR state. This value is configurable using RSIAxisAddressType::RSIAxisAddressTypeAMP_ENABLE_AMP_FAULT_TIMEOUT with MotionController::MemoryDoubleGet() and MotionController::MemoryDoubleSet(). The default value is Axis::AmpEnableAmpFaultTimeoutSecondsDefault.

Part of the Action method group.

Sample Code:
public void EnableAmp(Axis myAxis)
myAxis.ClearFaults(); // To enable after an abort faults must be cleared.
myAxis.AmpEnableSet(true); // Enable the motor.
Go to axis screen->Axis Status.
Left: Amp Enabled, Right: Amp Disabled
See also
ClearFaults, RSIAxisAddressType::RSIAxisAddressTypeAMP_ENABLE_AMP_FAULT_TIMEOUT
AxisConfig.cs, AxisConfiguration.cpp, CalculateAccelerationFromVelocity.cpp, DifferenceOfPositionUserLimit.cpp, GcodeMotion.cs, HelperFunctions.cs, Homing.cs, InputOutput.cs, MathBlock.cs, MotionHoldReleasedBySoftwareAddress.cpp, MultiAxisMotion.cs, MultiaxisMotion.cpp, PVTmotionMultiAxis.cpp, PathMotion.cpp, PathMotion.cs, PointToPoint.cpp, SingleAxisSyncOutputs.cpp, SyncOutputWithMotion.cpp, Template.cs, UpdateBufferPoints.cpp, UserLimit.cs, UserLimitCommandPositionDirect.cs, and VelocitySetByAnalogInputValue.cs.