MC_Reset
This function block resets all motion object-related errors and transitions the motion object out of state ErrorStop.
The resulting state is Disabled, if no Enable is requested for the motion object (e.g. via MC_Power).
It results in DiscreteMotion, if the motion object has a closed control loop and a controlled error reaction is still ongoing.
Otherwise, Standstill is the resulting state. This function block does not affect the output of motion function block instances.
Syntax
Definition:
FUNCTION_BLOCK MC_Reset
VAR_INPUT
Axis : Type_PtpErrorResettable;
Execute : BOOL;
END_VAR
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorId : UDINT;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
Axis |
Interface pointer to the object on which the command should be performed (e.g. Axis, Linear Mover). | |
|
Execute |
BOOL |
Trigger the command with rising edge. |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
Done |
BOOL |
Potential axis and/or drive error has been reset. State Standstill, Disabled or DiscreteMotion is reached. |
|
Busy |
BOOL |
Function block is not finished and new output values are to be expected. |
|
Error |
BOOL |
Error occurred within function block. |
|
ErrorId |
UDINT |
Error identifier |
Notes on the migration from NC2 to MC3
The MC3 function block MC_Reset only takes effect in the event of an error.
The MC3 MC_Reset function block does not reset an existing axis position lag.
If the connected drive hardware is also in an error state, a reset command is automatically sent to the hardware when the MC3 is reset. It is not necessary to perform a manual FB_SoEReset.
Version information
- TwinCAT Standard >= v3.1.4026.23.1
- TF5500 MC3 Base >= v4.0.6