APIs, concepts, guides, and more

◆ ClearFaults()

void ClearFaults ( )
Description:
ClearFaults will clear all the faults for an Axis or MultiAxis, particularly when it is in an RSIStateERROR state.

Part of the Action method group.

Sample Code:
if (axis->StateGet() == RSIStateERROR)
{
axis->ClearFaults();
}
Note
When called on a single Axis, ClearFaults will also attempt to clear any Node status, and clear any feedback faults if necessary.
RapidSetup:
Go to axis screen->Axis Status. ClearFaults is shown in image below.
See also
StateGet, SourceGet
Examples
CalculateAccelerationFromVelocity.cpp, DifferenceOfPositionUserLimit.cpp, GcodeMotion.cs, HelperFunctions.cs, Homing.cs, MathBlock.cs, MotionHold.cs, MotionHoldReleasedBySoftwareAddress.cpp, MultiAxisMotion.cs, MultiaxisMotion.cpp, PVTmotionMultiAxis.cpp, PathMotion.cpp, PathMotion.cs, PointToPoint.cpp, SampleAppsHelper.h, SingleAxisSyncOutputs.cpp, SyncOutputWithMotion.cpp, Template.cs, UpdateBufferPoints.cpp, UserLimitCommandPositionDirect.cs, and VelocitySetByAnalogInputValue.cs.