FB_RequestTranslation

FB_RequestTranslation 1:

This function block provides a translation for a text in a desired language.

The translations are referenced by an event class, which is specified in the query. It is therefore not used here as an event class, but as a translation table.

FB_RequestTranslation 2: Methods

Name

Description

Clear

This method clears the last result queried.

GetString

As soon as bBusy is FALSE and provided no error has occurred (bError = FALSE), the requested text can be fetched with this method.

Request

Calling this method triggers the asynchronous text request.

RequestRemote

Calling this method triggers the asynchronous request on a remote target system.

FB_RequestTranslation 3: Properties

Name

Type

Access

Description

bBusy

BOOL

Get

TRUE as long as the processing is not yet completed.

bError

BOOL

Get

TRUE when an error occurs.

hrErrorCode

HRESULT

Get

Outputs the error information if bError is TRUE.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4026.0

PC or CX (x64, x86, ARM)

Tc3_EventLogger (>=3.3.7.0)