Name :Reset the fault command

Symbol :MC_Reset

Illustrate:

        For the failure of the reset shaft, the rising edge is effective.
        On the rising edge of EXECUTE, try to reset the fault of the shaft (when the shaft is in the Errorstop state), and if the reset is successful, DONE is set to TRUE.

Image:

Parameter:

The name of the parameter | data type | IN/OUT | Parameter role | Illustrate | Default value
--- | --- | --- | --- | --- | ---
AXISNO | UDINT | IN | Pulse shaft number | 0-7 |
    not
EXECUTE | BOOL | IN | Function block triggering | The rising edge triggers the execution of the order |
    FALSE
    FALSE
DONE | BOOL | OUT | Reset the fault completion flag | TRUE：The reset fault is complete |
    FALSE
BUSY | BOOL | OUT | Busy sign | TRUE：Resetting the fault |
    FALSE
ERROR | BOOL | OUT | Error flags | TRUE：There was an error with the function block call> |
    FALSE
ERRORID | UINT | OUT | Error codes | 0：Normal, Other: Error code value |
    0

Example:

LD:

ST:

MC_Reset_inst1(AXISNO := 0, EXECUTE := TRUE, DONE => DoneOut, BUSY => BusyOut, ERROR => ErrorOut, ERRORID => ErrorIdOut);

Interpretation:

       AXISNO is 0, which means that the operating pulse axis is 0;
       EXECUTE BY FALSE->TRUE, INITIATES THE RESET FAULT INSTRUCTION;
       If DoneOut is TRUE, the execution of the reset fault command is complete.
       If BusyOut is TRUE, the axis is in the process of returning to the original execution, and the BusyOut is reset after it is completed.
       If ErrorOut is TURE, it means that there is an error and the command cannot be executed.
       If ErrorIdOut is 0, the execution is normal, and if it is not 0, there is an error and cannot be executed.