MC_AbortTrigger

MC_AbortTrigger 1:

The function block MC_AbortTrigger is used to abort a touch probe cycle started by MC_TouchProbe. MC_TouchProbe initiates a touch probe cycle by activating a position latch in external encoder or drive hardware. The function block MC_AbortTrigger can be used to terminate the procedure before the trigger signal has activated the position latch. If the touch probe cycle has completed successfully, it is not necessary to call up this function block.

MC_AbortTrigger 2: Inputs

VAR_INPUT
    Execute : BOOL;
END_VAR

Name

Type

Description

Execute

BOOL

The command is executed with the rising edge and the external position latch is disabled.

MC_AbortTrigger 3: Inputs/outputs

VAR_IN_OUT
    Axis         : AXIS_REF;
    TriggerInput : TRIGGER_REF; 
END_VAR

Name

Type

Description

Axis

AXIS_REF

Axis data structure

TriggerInput

TRIGGER_REF

Data structure for describing the trigger source. This data structure must be parameterized before the function block is called for the first time.

MC_AbortTrigger 4: Outputs

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

Name

Type

Description

Done

BOOL

TRUE as soon as the touch probe cycle has been successfully terminated.

Busy

BOOL

TRUE as soon as the function block is active. FALSE if it is in the default state.

Error

BOOL

TRUE, if 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