LookUp()

LookUp() 1:

This method translates a master value to a matching slave value. If the value lies between two defined points in the table, the selected operation mode is used for interpolation.

Syntax:

METHOD LookUp : HRESULT
VAR_INPUT
    fGuidingValue:      LREAL;
    fGuidingVelo:       LREAL;
    Slave:              REFERENCE TO LREAL;
    SlaveVelo:          REFERENCE TO LREAL;
    TorqueLimiting:     REFERENCE TO LREAL;
END_VAR 

LookUp() 2: Return value

Name

Type

Description

LookDown 

HRESULT

Return value with feedback on the success of the execution.

LookUp() 3: Inputs

Name

Type

Description

 

fGuidingValue

LREAL

Master value

 

fGuidingVelo

LREAL

Reserved for later use.

 

Slave

REFERENCE TO LREAL

Resulting slave value.

 

SlaveVelo

REFERENCE TO LREAL

Reserved for later use.

 

TorqueLimiting

REFERENCE TO LREAL

Secondary slave value for the requested primary master value.

 

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticFunctions v3.12.4.26 or higher