MC_Reset

MC_Reset 1:

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

MC_Reset 2: Inputs

Name

Type

Description

Axis

Type_PtpErrorResettable

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.

MC_Reset 3: 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

Hinweise zum Umstieg von NC2 zu MC3

Der MC3 Funktionsbaustein MC_Reset wirkt nur im Fehlerfall.

Der MC3 Baustein MC_Reset setzt einen vorhanden Schleppfehler der Achse nicht zurück.

Befindet sich auch die verknüpfte Antriebshardware im Fehlerzustand, wird beim MC3 Reset automatisch ein Reset-Kommando an die Hardware gesendet. Ein manueller FB_SoEReset muss nicht ausgeführt werden.

Versionsinformation

  • TwinCAT Standard >= v3.1.4026.23.1
  • TF5500 MC3 Base >= v4.0.6