MC_CamTableSelect (FB)

FUNCTION_BLOCK MC_CamTableSelect

This function block selects the CAM tables by setting the connections to the relevant tables

../../../../../../_images/plcopen.png
  • A virtual axis can be used as master axis.

  • MC_PProfile is an ABB specific data type.

  • CamTableSelect makes data available. It prepares the provided data to be used by MC_CamIn or MCA_CamInDirect

Example on adding a CAM table

CamTable:ARRAY[0..2]OF MC_PProfile := [

(Master_position:= 0, interpolation_point:= 0, Velocity_ratio:= 1, Acceleration_ratio:= 1 ), (Master_position:= 10, interpolation_point:= 10, Velocity_ratio:= 1, Acceleration_ratio:= 1 ), (Master_position:= 20, interpolation_point:= 15, Velocity_ratio:= 1, Acceleration_ratio:= 1 ),

];

Note

User can utilize CAM editor (Cam table ABB basic) in Automation builder to generate Cam table automatically. User can also use MCA_CamStructureSelect function block which is similar to MC_CamTableSelect but give more features , and to be used with Cam Editor (Cam table ABB ). For more details refer to Automation builder help.

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Starts the function block at rising edge

MasterAbsolute

BOOL

CamTable holds absolute positions for master. TRUE = Absolute, FALSE = Relative coordinates

SlaveAbsolute

BOOL

CamTable holds absolute positions for slave. TRUE = Absolute, FALSE = Relative coordinates

Number_Of_Pairs

INT

Number of sampling points, number of elements in CamTable

iType

MC_ABB_iTypes_Enum

Type of interpolation. Possible values are:
  • MCA_SPLINE_COMPLETE

  • MCA_SPLINE_NATURAL

  • MCA_POLY5

  • MCA_POLY3

  • MCA_LINEAR

CamTable

POINTER TO MC_PProfile

Reference to CAM description, points to an array of MC_PProfile. User can use the Cam Editor (Cam table ABB basic ) to generate the Cam points

Output

Done

BOOL

Shows the status of the function block. Done = TRUE if the execution is finished

Busy

BOOL

The function block with Busy = TRUE has control on the axis

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

CamTableID

MC_Cam_Id

Refers to prepared data, to be used for MC_CamIn or MCA_CamInDirect

Inout

Master

Axis_Ref

Reference to master axis

Slave

Axis_Ref

Reference to slave axis