MC_ClearFaults

PLCopen motion icon

 Function - Sends a request to the drive to clear any drive faults.

  • See Function Blocks - General Rules about how inputs and outputs work.
  • 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.

Usage

When there is a 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.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

N/A

No default

When TRUE, requests to clear the drive faults.

Axis

AXIS_REF

1 to 256

N/A

No default

AXIS_REF.AXIS_NUM is the master axis number.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Boolean output to indicate successful request.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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

See Also

MC_ResetError