SMC_CAMTable_LREAL_128_1 (STRUCT)ΒΆ

TYPE SMC_CAMTable_LREAL_128_1 : STRUCT

This STRUCT represents an equidistant curve table. The table can handle 128 elements of type LREAL.

The values provided for the equidistant curve table have two different units: Technical and table units. This can be used for scaling and offset purposes. For equidistant curve tables, only the slave values are scaled and an offset is applied:

  • fSlaveScale = (fEditorSlaveMax - fEditorSlaveMin) / (fTableSlaveMax - fTableSlaveMin)

  • fSlaveOffset = fEditorSlaveMin - (fTableSlaveMin * fSlaveScale)

The slave value in technical units is then calculated as follows:

  • fSlaveValue = fSlaveValueTableUnit * fSlaveScale + fSlaveOffset

Example

fTableSlaveMin = 0
fTableSlaveMax = 1
fEditorSlaveMin = 180
fEditorSlaveMax = 270
A slave value of 0.5 in table units will result in a slave value of 225 in technical units.

Note

Equidistant curve tables do not perform a scaling for the master values. The values fTableMasterMin, fTableMasterMax, fEditorMasterMin and fEditorMasterMax are not used.

Note

Equidistant curve tables created with the cam editor will always have equal values for the table and editor values (i.e. no scaling is done).

InOut:

Name

Type

Comment

Table

ARRAY [0..127] OF LREAL

Array of slave positions in table units. The array must start with the slave position related to the master start position and end with the slave position related to the master end position (see xStart and xEnd of MC_CAM_REF).

fEditorMasterMin

REAL

The minimum master value in technical units.

fEditorMasterMax

REAL

The maximum master value in technical units.

fEditorSlaveMin

REAL

The minimum slave value in technical units.

fEditorSlaveMax

REAL

The maximum slave value in technical units.

fTableMasterMin

REAL

The minimum master value in table units.

fTableMasterMax

REAL

The maximum master value in table units.

fTableSlaveMin

REAL

The minimum slave value in table units.

fTableSlaveMax

REAL

The maximum slave value in table units.