MC_ResetError
Function - Resets the errors of the specified axis.
- Makes the transition from the state ErrorStop to StandStill by resetting all internal axis-related errors and clearing pending commands.
- This does not affect the output of the FB instances.
-
-
- This function or function block returns cached data.
- See Program a Multi-Core Controller.
This function performs these tasks in sequence:
- Sends a request to the drive to clear any drive faults that exists
- 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.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
En |
BOOL |
FALSE, TRUE |
N/A |
No default |
Requests to reset the axis errors. |
|
Axis |
AXIS_REF |
1 to 256 |
N/A |
No default |
Name of a declared instance of the AXIS_REF library function.
|
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
OK |
BOOL |
FALSE, TRUE |
N/A |
Function or function block executed successfully. |
FBD Language Example
Not available.
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//reset the axis and drive errors for Axis 1
MC_ResetError( Axis1 );






