The RMP Motion Controller APIs

◆ AmpFaultDurationGet()

double AmpFaultDurationGet ( )
Description:
AmpFaultDurationGet returns the duration required before the Amp Fault event triggers.
Returns
(double) Seconds.
Remarks
This function is also available in RapidSequencer.

Part of the Limits and Action Configuration method group.

Sample Code:
ConfigAmpFault
const double AMP_FAULT_DURATION_TIME = 1; //value in seconds
// 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(AMP_FAULT_DURATION_TIME); //Set the duration required before the Amp Fault event triggers.
// GET
var isEnabled = axis.AmpEnableGet();
var faultAction = axis.AmpFaultActionGet();
var faultTriggerState = axis.AmpFaultTriggerStateGet();
var faultDuration = axis.AmpFaultDurationGet();
RapidSetup:
Go to axis screen->Limits & Actions. In the image below, AmpFaultDurationGet returns the value in the "Duration" box in the Amp Fault box. It is currently 0.
See also
AmpFaultDurationSet
RSI::RapidCode::RSIAction
RSIAction
Action to perform on an Axis.
Definition: rsienums.h:1051