CamScalingData

Contains scaling and offset factors to be applied in cam table couplings.
MasterCamPos = (MasterPos - MasterOffset) / MasterScaling
SlaveCamPos = CamTable(MasterCamPos)
SlavePos = (SlaveCamPos * SlaveScaling) + SlaveOffset.

Syntax

Definition:

TYPE CamScalingData :
STRUCT
    MasterOffsetMode : ECamOffsetMode;
    MasterOffset     : LREAL;
    MasterScaling    : LREAL;
    SlaveOffsetMode  : ECamOffsetMode;
    SlaveOffset      : LREAL;
    SlaveScaling     : LREAL;
END_STRUCT
END_TYPE

Parameters

Name

Type

Default

Description

MasterOffsetMode

ECamOffsetMode

None

Defines how the master offset is determined during cam activation.

MasterOffset

LREAL

0.0

Position offset applied to the master input before cam table lookup.

MasterScaling

LREAL

1.0

Scaling factor applied to the master input before cam table lookup.

SlaveOffsetMode

ECamOffsetMode

None

Defines how the slave offset is determined during cam activation.

SlaveOffset

LREAL

0.0

Position offset added to the slave output after cam table evaluation.

SlaveScaling

LREAL

1.0

Scaling factor applied to the slave output after cam table evaluation.

Further information

A cam plate can be scaled using the MC_CamScaling function block for active cam plate couplings. Even when the coupling state is changed using MC_CamAdd, MC_CamIn, and MC_CamExchange, it is possible to scale the new cam plate coupling.

Version information

  • TwinCAT Standard >= v3.1.4026.23.1
  • TF5550 MC3 Camming >= v4.0.6 (includes TF5500 MC3 Base >= v4.0.6)