MC_SetOverride_BkPlcMc

MC_SetOverride_BkPlcMc 1:
MC_SetOverride_BkPlcMc 2:

Available from version 3.0

The function block sets the override of an axis.

MC_SetOverride_BkPlcMc 3:

This function block only takes effect if the profile type iTcMc_ProfileCtrlBased is used.

MC_SetOverride_BkPlcMc 4: Inputs

VAR_INPUT
    Enable:     BOOL;
    VelFactor:  LREAL;
END_VAR

Name

Type

Description

Enable

BOOL

An active state at this input sets the override of the axis.

VelFactor

LREAL

[1] The new override of the axis.

MC_SetOverride_BkPlcMc 5: Inputs/outputs

VAR_IN_OUT
    Axis:       AXIS_REF_BkPlcMc;
END_VAR

Name

Type

Description

Axis

AXIS_REF_BkPlcMc

Here, the address of a variable of type AXIS_REF_BkPlcMc should be transferred.

MC_SetOverride_BkPlcMc 6: Outputs

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

Name

Type

Description

Enabled

BOOL

This indicates the active state of the function block.

Busy

BOOL

This output is TRUE while the command is being processed.

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

An encoded indication of the cause of the error is provided here.

Behavior of the function block

If the Enable state is active, the value transferred as VelOverride is limited to the range 0.0 to 1.0 and entered in Axis.pStAxParams^.fOverride. Enabled is set to TRUE.

A falling edge at Enable clears all outputs.

MC_SetOverride_BkPlcMc 7:

All velocity changes caused by an override modification are limited according to the maximum permitted accelerations and decelerations.

MC_SetOverride_BkPlcMc 8:

In order to ensure reproducible behavior during the target approach, the override only reduces the travel speed to pStAxParams.fCreepSpeed. Therefore, it is not possible to stop the axis movement through an override of 0.0.