MCA_CamStructureSelect (FB)

FUNCTION_BLOCK MCA_CamStructureSelect

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.

  • CamExtended is an ABB specific data type.

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

Example on adding a CAM table

camtable1 : AC500_MotionControl.CamExtended := (CamTabledata := ADR(Cam), CamPoints:= 4, Tappetdata:= ADR(Cam_T), TappetPoints:= 5, MasterEnd:= 360.0, MasterStart:= 0.0, CamName:= ‘Camtable1’); where Cam: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 ),

];

Cam_T : Array[0..x] OF MCA_CamTappet.

Note

User can utilize CAM editor (Cam table ABB ) in Automation builder to generate Cam table automatically. For more details refer to Automation builder help.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

Starts the function block at rising edge

ContinuousUpdate

BOOL

if this input is set to TRUE, before rising edge on Execute input, then any change to cam points will be taken on fly. This on fly Cam Points update can be disabled antime by setting this input to FALSE

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

iType

MC_ABB_iTypes_Enum

Type of interpolation. Possible values are:
  • MCA_SPLINE_COMPLETE

  • MCA_SPLINE_NATURAL

  • MCA_POLY5

  • MCA_POLY3

  • MCA_LINEAR

Cam

CamExtended

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

Periodic

BOOL

TRUE

Cam table will run continuoulsy and start automatically again, if “EndOfProfile” is reached

Reverse

BOOL

Cam should be run in the reverse direction, master axis will move from larger to smaller positions when the cam table is entered

OffsetMode

MCA_OffsetMode

Offset Mode for Slave axis, based on Mode Selection, CamTable Execution is different

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