Block responsible for cleaning up the failure status of drive.
Ladder Representation

Execution Features
Program Memory Size |
28 Bytes |
Data Memory Size |
4 Bytes |
Block Structure
Variable Type |
Name |
Data Type |
Description |
VAR_IN_OUT |
Axis |
BYTE |
Selection of operation axis (0 - Real axis) (1 - Virtual 1 axis) |
VAR_INPUT |
Execute |
BOOL |
Block enabling |
VAR_OUTPUT |
Done |
BOOL |
Output enabling |
Error |
BOOL |
Error in the execution flag |
|
ErrorID |
WORD |
Identifier of the occurred error |
|
VAR |
MC_RESET_INST_0 |
MC_RESET |
Instance of access to block structure |
Operation
When this block detects a leading edge in Execute, it performs cleanliness in the drive status, changing it from Errorstop to Disabled.
When Execute has FALSE value, Done remains FALSE. The Done output is activated when the block finishes the execution successfully, remaining at TRUE level until Execute receives FALSE.
If there is any error in the execution, the Error output is enabled and ErrorID displays an error code according to the table below.
Code |
Description |
71 |
P202 different from 4. |
Example in Ladder



If a fault occurs on the drive, the axis status will change to "Errorstop" (%SW6004 = 1).
When an up transition of RESET_COMMAND occurs, the MC_Reset block will be executed and axis status will change to Disabled (SW6004 = 0%). The Done output will remain set while the Execute input is TRUE level.
Example in ST
The example below displays the instructions for applying the example above in the ST language.
VAR RESET_COMMAND, RESET_STATUS : BOOL; MC_RESET_INST_0 : FB_MC_Reset; END_VAR
MC_RESET_INST_0.Execute := RESET_COMMAND; MC_RESET_INST_0(Axis:=0); RESET_STATUS := MC_RESET_INST_0.Done;
|
|---|