MC_AbortSuperposition

MC_AbortSuperposition 1:

The function block MC_AbortSuperposition terminates a superimposed movement started by MC_MoveSuperImposed, without stopping the subordinate axis movement.

A full axis stop can be achieved with MC_Stop or MC_Halt, if necessary. In this case MC_AbortSuperposition does not have to be called.

MC_AbortSuperposition 2: Inputs

VAR_INPUT
    Execute : BOOL;
END_VAR

Name

Type

Description

Execute

BOOL

The command is executed with a rising edge and the superimposed movement is completed.

MC_AbortSuperposition 3: Inputs/outputs

VAR_IN_OUT
    Axis : AXIS_REF;
END_VAR

Name

Type

Description

Axis

AXIS_REF

Axis data structure that unambiguously addresses an axis in the system. Among other parameters it contains the current axis status, including position, velocity or error state.

MC_AbortSuperposition 4: Outputs

VAR_OUTPUT
    Done    : BOOL;
    Busy    : BOOL;
    Error   : BOOL;
    ErrorID : UDINT;
END_VAR

Name

Type

Description

Done

BOOL

TRUE if the superimposed movement was successfully completed.

Busy

BOOL

TRUE as soon as the function block is active. FALSE when it returns to its initial state.

Error

BOOL

TRUE as soon as an error occurs.

ErrorID

UDINT

If the error output is set, this parameter supplies the error number.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.0.0

PC or CX (x86 or x64)

Tc2_MC2