MCV_ReadCamTableElement

This FB can read CAM table elements online from the CAM table memory.

Block diagram

FB parameters

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

The new table value is read on the rising edge.

CamTableID

MC_CAM_ID

CAM table ID

CamTableLine

UDINT

CAM table line number for the table value to be read (starting at 0)

CamTableColumn

UINT

CAM table column number for the table value to be read (starting at 0)

Mode

UDINT

Select the CAM table element

Value

Meaning

0

Table value (default)

1

Table type “Tabletype”

2

Interpolator type “Functiontype”

3

Line number “Lines”

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

The CAM tables were read successfully.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

Value

LREAL

Current table value referenced by specifying CamTableID, CamTableLine and CamTableColumn or current interpolation type “Functiontype” depending on the mode setting