MCA_CamInfo (FB)

FUNCTION_BLOCK MCA_CamInfo

This function block gives an information which index is actually processed by the respective cam table.

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

Correct information is shown if the referenced cam table is still active.

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

Note

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

InOut:

Scope

Name

Type

Comment

Input

Enable

BOOL

Activate the function block

Inout

CamTableID

MC_Cam_Id

Prepared by MC_CamTableSelect and used with MC_CamIn or MCA_CamInDirect

Output

ActiveIndex

INT

Active Index, value always starts from zero, even if the CAM table array is started with a different value