MC_CamTableSelect (FB)
FUNCTION_BLOCK MC_CamTableSelect
This function block selects the CAM tables by setting the connections to the relevant tables
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
ExecuteBOOLStarts the function block at rising edge
MasterAbsoluteBOOLCamTable holds absolute positions for master. TRUE = Absolute, FALSE = Relative coordinates
SlaveAbsoluteBOOLCamTable holds absolute positions for slave. TRUE = Absolute, FALSE = Relative coordinates
Number_Of_PairsINTNumber of sampling points, number of elements in CamTable
iType- Type of interpolation. Possible values are:
MCA_SPLINE_COMPLETE
MCA_SPLINE_NATURAL
MCA_POLY5
MCA_POLY3
MCA_LINEAR
CamTablePOINTER 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
DoneBOOLShows the status of the function block. Done = TRUE if the execution is finished
BusyBOOLThe function block with Busy = TRUE has control on the axis
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
CamTableIDRefers to prepared data, to be used for MC_CamIn or MCA_CamInDirect
Inout
MasterReference to master axis
SlaveReference to slave axis