MC_AddSuperAxis

PLCopen motion icon

 Function Block - Adds a Superimposed Axis to the Axis’s list of assigned superimposed axes.

This feature allows the application program to superimpose the moves of multiple axes (Superimposed Axes) on top of the move of another axis (Receiving Axis).

  • This is performed internally by adding the command deltas of the Superimposed Axes to the command delta of the Receiving Axis.
  • A maximum of four different Superimposed Axes can be superimposed upon a Receiving Axis.
  • While the Superimposed Axis is on this list, its command deltas are added to the Axis’s command deltas.
  • The Axis and the SuperimposedAxis must have the same update rate.
  • The OK output goes high to indicate the function executed successfully.
  • If the OK output does not go high, one of these errors is detected:
    • Axis and SuperimposedAxis do not have the same update rate.
    • Four different superimposed axes have already been assigned to Axis.
    • The axis is not a valid axis.
    • The axis is not a servo or virtual axis.
    • SuperimposedAxis is not:
      • A valid axis number.
      • A servo or virtual axis.
    • Axis could not acquire PLC motion engine lock.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

N/A

N/A

Enables execution.

Axis

AXIS_REF

AXIS_NUM 1 to 256

N/A

N/A

Axis to receive the additional superimposed axis’s command delta.

SuperimposedAxis

UINT

1 to 256

N/A

N/A

Axis number of the superimposed axis whose command delta is added to delta of Axis.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Execution successful.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

AddOKST := MC_AddSuperAxis( Axis1, 3);

See Also

MC_RemSuperAxis