FunctionMC_ClearFaultsPLCopen motion icon

Description

The MC_ClearFaults function sends a request to the drive to clear any drive faults that exists.


  • The condition causing the drive fault has to be corrected before calling this function. If the fault condition still exists when this function is called, this function sends a request to the drive but the drive faults remain.


  • This function does not reset axis errors. MC_ResetError is required to reset axis errors and possibly to re-enable or turn power on to the servo axis after the fault condition is cleared.

MC_ClearFaults

Figure 7-113: MC_ClearFaults

Arguments

For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules

Input

En

Description

Function enable – execute function.

This Input must be on shot.

 

Data type

BOOL

 

Range

0, 1

 

Unit

N/A

 

Default

Axis

Description

AXIS_REF.AXIS_NUM is the master axis number (for more details,About Axis Name and Number)

 

Data type

AXIS_REF

 

Range

[1,256]

 

Unit

N/A

 

Default

Output

OK

Description

Boolean output to indicate successful request. This output does not indicate that the fault are cleared, but simply indicates the request was made.

See more details here.

 

Data type

BOOL

Usage

Upon the positive transition of the EN input, this function requests a Fault Reset of the Drive for the Axis defined in the axis input of this function.

Related Functions

MC_ResetError

Example

Structured Text

 

(* MC_ClearFaults ST example *)

MC_ClearFaults( Axis1); //clear drive faults for Axis 1

 

Function Block Diagram

Ladder Diagram

MC_ClearFaults: LD example

Go back to the top of the page [Top]