MC_SetOverride

The FB MC_SetOverride specifies a weighting factor that acts on the commanded velocity of the axis.

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

Enable

BOOL

If this value is TRUE, the weighting factor is applied to the commanded velocity.

VelFactor

LREAL

Weighting factor of the velocity

Value range [0.0 to P-AXIS-00109 / 1000]

See use of the “VelFactor” input.

VelFactorMaxShift

LREAL

Maximum change of the weighting factor.

Value range [0.0 to P-AXIS-00109 / 1000]

See use of the “VelFactorMaxShift” input.

VAR_OUTPUT

Variable name

Data type

Description

Enabled

BOOL

If this value is TRUE, the value at the “VelFactor” input is continuously applied to the axis.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

Behaviour of the FB:

The FB acts on all axes which have a spindle or single-axis interpolator due to the parameterisation. This can be achieved by entering the axis as

  1. Spindle
  2. a linear or rotary axis with activated P-AXIS-00250
  3. A path axis with activated P-AXIS-00457 (where the effect of parameter P-AXIS-00491 must be considered)

in the configuration. On axes below 3, the weighting factor only acts if the axis is moved by a PLCopen command.

WARNING

warning

This function does not act on axes that are in the "SYNCHRONIZED_MOTION" state.

Note:

In a typical packaging application environment, there are frequently intermeshing machine components that are controlled by means of cam/gear coupling.

A loss of coupling synchronicity here may lead to very severe machine damage. This is why the cam/gear coupling in the implementation is "holy", i.e. axis-specific feedhold, axis-specific override CANNOT act on the cam/gear slave because this would be contradictory to the coupling specification.

Example

example

Use of the “VelFactor” input