MCA_GetTappetValue (FB)

FUNCTION_BLOCK MCA_GetTappetValue

This function block implements Tappet functionality. The output pin is Switched on and Off based on TrackID, Axis Position and Configuration in the MCA_CamTappet array. CamTableID from MCA_CamStructureSelect FB needs to be connected to this block to consider scaling and gearing from MC_CamIn FB.

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

This Fb needs to be called in Motion task to get Correct results.

Users can either create MCA_CamTappet array manually or by using the CamEditor to configure tappets.

When using the CamEditor, MCA_CamTappet array is generated automatically based on the configuration and the array name follows the Cam object name with “_T”.

For example, Cam object’s name is “RotaryShear”, MCA_CamTappet array is generated as “RotaryShear_T. This can be directly passed to input pin name “Tappets” of function block MCA_GetTappetvalue.

Note

User can utilize CAM editor in Automation builder to generate Tappet Table (MCA_CamTappet) automatically. AxisPosition in MCA_CamTappet should be always in ascending order.

{attribute ‘hide_all_locals’}

InOut:

Scope

Name

Type

Comment

Input

Enable

BOOL

Enables the function block to evaluate tappet track. A rising edge is not required, the block will be activated if Enable = TRUE

TrackID

INT

Track ID for which Output is needed. Range: >=1

Output

InOperation

BOOL

True indicates that Function Block is in Operation

Output

BOOL

Actual tappet value as per tappet table

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

Input

Tappets

POINTER TO MCA_CamTappet

Reference to CAM_T description, points to an array of MCA_CamTappet, Must be an Array not a pointer

Inout

AxisRef

Axis_Ref

Axis Ref: Reference to Tappet Axis.

CamTableID

MC_Cam_Id

CamTableID, from Cam_StructureSelect Needs to be connected here.