MC_SetAcceptBlockedDriveSignal

MC_SetAcceptBlockedDriveSignal 1:

There are situations in which a drive no longer follows the NC setpoints, e.g. if an axis reaches a limit switch. The NC interprets such a situation as an error, and the drive is stopped. In some cases the user may want to provoke such a situation deliberately, e.g. in order to move to a limit switch for a reference run.

The function MC_SetAcceptBlockedDriveSignal can be used to temporarily prevent the NC axis generating an error in situations where the drive no longer follows the NC setpoints.

FUNCTION MC_SetAcceptBlockedDriveSignal: BOOL

MC_SetAcceptBlockedDriveSignal 2: Inputs

VAR_INPUT
    Enable :  BOOL;
END_VAR

Name

Type

Description

Enable

BOOL

NC controller enable for the axis

MC_SetAcceptBlockedDriveSignal 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.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.0.0

PC or CX (x86 or x64)

Tc2_MC2