APIs, concepts, guides, and more

◆ AmpFaultActionSet()

void AmpFaultActionSet ( RSIAction action)
Description:
AmpFaultActionSet sets the action to be performed when the Amp Fault triggers.
Note:
Available Actions are Abort(), EStop(), Stop(), None, EStopAbort(), and EStopModify()
Parameters
actionAction taken on Amp Fault event. A RSIAction value.

Part of the Limits and Action Configuration method group.

Sample Code:
Axis: Configuration
// set
axis.AmpEnableSet(false); // disable the amp
axis.AmpFaultActionSet(RSIAction.RSIActionABORT); // set the action that will occur when there is an amp fault.
axis.AmpFaultTriggerStateSet(false); // set the state of the amp fault.
axis.AmpFaultDurationSet(1); // set the duration (seconds) required before the Amp Fault event triggers.
// get
bool isEnabled = axis.AmpEnableGet();
RSIAction faultAction = axis.AmpFaultActionGet();
bool faultTriggerState = axis.AmpFaultTriggerStateGet();
double faultDuration = axis.AmpFaultDurationGet();
RapidSetup:
Go to axis screen->Limits & Actions. In image below, AmpFaultActionSet sets the action type shown in the Amp Fault box. It is currently set to ABORT.
See also
AmpFaultActionGet()
Examples
AxisConfiguration.cpp, PhantomAxis.cpp, SampleAppsHelper.h, and axis-config-ampfault.cs.