TranslateFromDrive()

TranslateFromDrive() 1:

This method is used to calculate a load position using the transformation table of the load table.

Syntax:

METHOD TranslateFromDrive : HRESULT
VAR_INPUT
    bExecute:        BOOL;
    fDrivePosition:  LREAL;
    fLoadPosition:   REFERENCE TO LREAL;
    nSlot:           INT;
END_VAR

TranslateFromDrive() 2: Return value

Name

Type

Description

TranslateFromDrive

HRESULT

Return value with feedback on the success of the execution.

TranslateFromDrive() 3: Inputs

Name

Type

Description

bExecute

BOOL

A rising edge starts the asynchronous execution of this method.

fDrivePosition

LREAL

Drive position to be translated.

fLoadPosition

REFERENCE TO LREAL

Translated load position.

nSlot

INT

The slot to be used for the asynchronous query.

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