FunctionMC_ResetErrorPLCopen motion icon

Description

The function MC_ResetError resets the errors of a specified axis.

This function performs in sequence the following tasks:

  • It sends a request to the drive to clear any drive faults that exists
  • Then it resets the axis errors

  • The condition causing the axis error has to be corrected before calling this function. The axis error still remains until the error condition exists when this function is called.

See also transition 15 in the status machine of the CANopen protocol.

MC_ResetError

Figure 8-127: MC_ResetError

Arguments

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

Input

En

Description

Requests to reset the axis errors

 

Data type

BOOL

 

Range

0, 1

 

Unit

N/A

 

Default

Axis

Description

Name of a declared instance of the AXIS_REF library function (for more details, About Axis Name and Number)

 

Data type

AXIS_REF

 

Range

[1,256]

 

Unit

N/A

 

Default

 

Output

OK

Description

Indicates the function has completed successfully

See more details here.

 

Data type

BOOL

Example

Structured Text

            //reset the axis and drive errors for Axis 1
            
MC_ResetError( Axis1 );

Ladder Diagram

MC_ResetError: LD example

Go back to the top of the page [Top]