FB_CammingLookUp

FB_CammingLookUp 1:

This class is able to dynamically allocate memory and make it available as a table. Similarly, this function block acts as a LookUp table for the cam plate core function or the transformation table of a transformation axis.

Syntax:

FUNCTION_BLOCK FB_CammingLookUp EXTENDS FB_MessageBase

FB_CammingLookUp 2: Initialization parameters of the FB_init constructor

Name

Type

Description

Points

INT

Defines the number of points

= 0 enables subsequent assignment via SetPoints(…)

OpMode

E_LookupMode

Defines the operation mode of the LookUp table

= eUndefined enables subsequent assignment via Interpolation and Equdistance

FB_CammingLookUp 3: Properties

Name

Type

Access

Description

Equidistance

BOOL

Get, Set1

In equidistant mode, the table assumes equal distances between the MinGuidingValue and the MaxGuidingValue.

Interpolation

E_LookupMode

Get, Set1

Interpolation mode of the table

InvalidPoint

BOOL

Get

Is set by a call to LookUp() or LookDown() if the requested point is outside the valid range.

MinGuidingValue

LREAL

Get, Set

Smallest possible value for the LookUp() and LookDown() function

MaxGuidingValue

LREAL

Get, Set

Largest possible value for the LookUp() and LookDown() function

Overrun

BOOL

Get

Additional information on InvalidPoint:

TRUE -> InvalidPoint is above the definition range.

FALSE -> InvalidPoint is below the definition range.

Points

LREAL

Get

Number of available points in the table

Valid

BOOL

Get

The configuration of the table is validated and ready for use.

OpMode 2

E_LookupMode

Get

Operation mode of the table

1Must be set before determining the number of points

2Obsolete

FB_CammingLookUp 4: Methods

Name

Description

GetPoint()

Returns an equidistant point in the table.

GetPointNonEqui()

Returns any point consisting of a master and a slave value.

LookDown()

Translates a slave value to a matching master value.

LookUp()

Translates a master value to a matching slave value.

SetPoint()

Sets an equidistant point in the table.

SetPointNonEquidistant()

Sets any point consisting of a master and a slave value.

SetPoints()

Defines the number of assignable points once.

SetProperties()2

Sets the master limit values of the table

GetProperties()2

Returns the master limit values of the table

GetPoints()2

Returns the number of points available in the table

GetValid()2

Checks the table for validity

2Obsolete

FB_CammingLookUp 5: Interfaces

Type

Description

I_CammingLookUp

Standard interface on FB_CammingLookUp

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.6.1.0)