MC_ResetError

PLCopen motion icon

Description

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - resets the errors of a specified axis.

This function performs these tasks in sequence:

  1. Sends a request to the drive to clear any drive faults that exists
  2. 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 7-125: MC_ResetError

Arguments

See Function Blocks - General Rules for more information about how inputs and outputs work.

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

See Axis Name and Number for more information.

 

Data type

AXIS_REF

 

Range

[1,256]

 

Unit

N/A

 

Default

 

Output

OK

Description

Indicates the function has completed successfully.

See Function - General Rules for more information.

 

Data type

BOOL

Example

Structured Text

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

Ladder Diagram

MC_ResetError: LD example