MC_CamScaling

MC_CamScaling 1:

This function block applies the scaling factor of an existing cam table coupling on a slave. InSync of the existing cam table coupling is not affected by this function block.

Syntax

Definition:

FUNCTION_BLOCK MC_CamScaling
VAR_INPUT
    Slave             : Type_Camming1D;
    CamObject         : Type_CouplingFunction1D;
    Execute           : BOOL;
    Scaling           : CamScalingData;
    ActivationOptions : CamActivationOptions;
END_VAR
VAR_OUTPUT
    Done              : BOOL;
    Busy              : BOOL;
    Active            : BOOL;
    CommandAborted    : BOOL;
    Error             : BOOL;
    ErrorId           : UDINT;
END_VAR

MC_CamScaling 2: Inputs

Name

Type

Description

Slave

Type_Camming1D

Reference to the slave axis

CamObject

Type_CouplingFunction1D

Reference to the cam object

Execute

BOOL

Apply cam scaling at rising edge

Scaling

CamScalingData

New cam scaling

ActivationOptions

CamActivationOptions

Options controlling how the cam coupling is activated (mode, position, reference object).

MC_CamScaling 3: Outputs

Name

Type

Description

Done

BOOL

Cam scaling succeeded

Busy

BOOL

Function block is not finished and new output values are to be expected.

Active

BOOL

Function block has active control on the axis.

CommandAborted

BOOL

Command is aborted by another command.

Error

BOOL

Error occurred within function block.

ErrorId

UDINT

Error identifier

Further information

A cam plate coupling can be scaled with the function block MC_CamScaling. The raw table data of the cam plate are not affected; instead, the scaling refers to an active master/slave coupling. The following parameters can be modified: scaling factors for master and slave, and offsets for the cam plate within the coordinate system.

Optionally, the modification will only take effect from a certain master position, enabling precise scaling during the motion.

Notice

Property damage due to modifying an active cam plate coupling

This function block can also be used for an active cam plate. Valid changes are applied to the cam plate and may result in setpoint jumps. To activate cam plate scaling at a specific time or at a specific position, the following procedure is recommended:

  • Use ECamActivationMode.AtBoundary, ECamActivationMode.AtMasterCamPosition, or ECamActivationMode.AtMasterAbsolutePosition
  • Alternatively, create a copy of the active cam plate (using the CopyFrom() method) and make the changes to the copy. Next, switch between the cam plates (MC_CamExchange).

Version information

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

Required License

TC3 MC3 Camming