MC_ResetError
Description
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 also transition 15 in the status machine of the CANopen protocol.
Figure 7-125: MC_ResetError
-
-
This function or function block returns cached data.
See Programming a Dual Core Controller for more information.
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 |
||
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