MCA_CamGetInterpolationValues (FB)

FUNCTION_BLOCK MCA_CamGetInterpolationValues

This function block gives an interpolation result, according to the referenced camtable, for the given master position, based on Scaling and Offset (Master and Slave) .

../../../../../../_images/plcopen.png
Mode

The positions will be used as absolute positions.

The block will not check if the cam table is still active.

InOut:

Scope

Name

Type

Initial

Comment

Input

Enable

BOOL

Activate the function block

Master_Position

LREAL

Master position for cam table

MasterOffset

LREAL

0

Master Offset

SlaveOffset

LREAL

0

Slave Offset

MasterScaling

LREAL

1

Applicable Master scaling

SlaveScaling

LREAL

1

Applicable Slave Scaling

Output

Valid

BOOL

FALSE if either of the table is not valid, or master position outside the range

Interpolation_Point

LREAL

Gives the interpolated position

InterpolatedVel

LREAL

Gives the interpolated velocity

InterpolatedAcc

LREAL

Gives the interpolated Acceleration

Inout

CamTableID

MC_Cam_Id

Prepared by MC_CamTableSelect or MCA_CamStructureSelect and used with MC_CamIn or MCA_CamInDirect

Master

Axis_Ref

Master Axis

Slave

Axis_Ref

Follower Axis