MC_ResetError

PLCopen motion icon

 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 the specified axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

0, 1

N/A

No default

Requests to reset the axis errors.

Axis

AXIS_REF

1, 256

N/A

No default

Name of a declared instance of the AXIS_REF library function.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

No range

N/A

Function block executed successfully.

See Pipe Network - General Rules for more information.

Remarks

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 Transition Events and Actions, #15 in the status machine of the CANopen protocol.

MC_ResetError

Figure 6-209: MC_ResetError

FBD Language Example

Not available.

FFLD Language Example

MC_ResetError: LD example

IL Language Example

Not available.

ST Language Example

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