TranslateFromLoad()

TranslateFromLoad() 1:

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

Syntax:

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

TranslateFromLoad() 2: Return value

Name

Type

Description

TranslateFromLoad

HRESULT

Return value with feedback on the success of the execution.

TranslateFromLoad() 3: Inputs

Name

Type

Description

bExecute

BOOL

A rising edge starts the asynchronous execution of this method.

fLoadPosition

LREAL

Load position to be translated.

fDrivePosition

REFERENCE TO LREAL

Translated drive 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