Reset all Axis Errors with MC_Reset2All
MC_Reset2All supports the reset of both Axis errors and/or Common errors for all axes.
-
LS_Connect must be executed before this function block can be used.
-
The following examples can be found in the XMC_MultiAxis_FBs.zip downloadable from Example Applications.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
Element Name | Element Type | Description |
---|---|---|
Execute | Input | Edge detected request to execute the function block. |
ErrorType | Input |
Type of error to be reset.
|
Done | Output | Indicates the function block completed successfully. |
Busy | Output | Indicates the function block is currently being executed. |
Error | Output | Indicates whether an error occurs or not. |
ErrorID | Output | Error Identification number. |
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
//Check that all axes are ready
IF (_AX01_SV_RDY) AND (_AX02_SV_RDY) AND (_AX03_SV_RDY) AND (_AX04_SV_RDY) THEN
All_Axes_Ready := TRUE;
ELSE
All_Axes_Ready := FALSE;
END_IF;
IF (All_Axes_Ready) THEN
//Example of MC_Reset2All function block
INST_MC_RESET2ALL(Execute:=Execute_ResetAll, ErrorType:=2,
ErrorID=>INST_MC_RESET2ALL.ErrorID);
END_IF;
LM603