Topic: DMD0411 AXRSTFAULT - Reset Axis Fault |
|
Note: this instruction can only be used with a BRX CPU !
The Reset Axis Fault (AXRSTFAULT) instruction is used to clear the fault in an Axis that has either reached one of the configured Over-travel Fault Limits while it was moving, or has had its MasterEnable manually turned OFF while the Axis was running, or an attempt has been made by an AXSCRIPT to execute a command that's illegal in the current state of the Axis. Note: the AXCONFIG - Axis Configuration instruction will also reset an Axis that is in a fault state.
When an Axis has faulted one the following Fault Codes will be in .Mode field of the Axis' associated structure:
Axis Device selects which Axis this instruction will use - remember that Axis 0 is a virtual Axis meaning it will not generate pulses to physical outputs on the PLC.
The On Success and On Error parameters specify what action to perform when this instruction completes. You do not have to use the same type of selection for both On Success and On Error.
If the Set Bit selection is used for either On Success or On Error, the specified BIT location will be SET OFF when the instruction is first enabled and will remain OFF until the instruction completes. Once complete, the appropriate Success or Error bit location will be set ON. The specified Bit location is enabled with a SET (Latch) operation (not an OUT operation) meaning that it will remain ON even if this instruction's input logic goes OFF.
If the JMP to Stage selection is used for either On Success or On Error the target Stage must be in the same Program code-block as this instruction, you cannot specify a target Stage that exists in a different Program code-block. When the operation finishes, the target Stage will be enabled the same way as a standalone Jump to Stage (JMP) instruction would do it. The JMP to Stage option will only be selectable if this instruction is placed in a Program code-block.
On Success selects which of the following actions to perform if the operation is successful:
On Error selects which of
the following actions to perform if the operation is unsuccessful:
If either the On Success or On Error selections are set to JMP to Stage, Automatically create the SG box for any NEW stage number will be enabled which will automatically create any target stage that does not already exist.
|
|
Status Display
The red triangle in the upper left corner of the status display indicates this is a Fully Asynchronous instruction.
The gray triangle at the right end of the input leg indicates the input is edge-triggered, meaning this instruction will execute each time the input logic transitions from OFF to ON.
Execution Mode shows the current mode of the Axis (see a list of the possible execution mode values).
CurrentPosition / CurrentVelocity are the current values of these numeric fields from Axis' associated structure.
MasterEnable / Active / Suspend / Fault / EnableOutput are the current state of these Bit values from that Axis' associated structure.
A detailed description of the Numeric and Bit fields is available in AXCONFIG - Axis Configuration.
|
|
See Also
AXSETPROP - Axis Set Properties
AXRSTFAULT - Reset Axis Limit Fault
AXSCRIPT - Run a Sequence of Axis Commands AXHOME - Axis Perform Home Search
AXPOSTRAP - Axis Move to Position Using Trapezoid
AXPOSSCRV - Axis Move to Position Using S-Curve
AXVEL - Axis Set Velocity Mode
AXGEAR - Axis Electronic Gearing
AXFOLLOW - Axis Position Following with Offset
AXCAM - Axis Electronic Camming
|
|
Related Topics
|
|
Example
|
|