-

GET_LANG_WSTRING

TypeFunction block
DescriptionThe function block searches for a localized (translated) string, based on a string identifier and a language code.
The translation is read from the specified 'Resources' table and, if found, written to the WSTRING variable connected to the LOCALIZED_STRING output.

Further Info
Details on the localization process, preconditions and detailed step-by-step procedures can be found in the topic "Project Language Translation (Localization)".

With a rising edge at the REQ input, the specified localized string is searched. The BUSY output is set to TRUE while the search is running. If the function block has finished the execution and the localized string has been successfully found, the DONE output is set to TRUE and the localized string is applied at the LOCALIZED_STRING output. The ERROR output indicates whether an error occurred while executing the function block.
The STATUS output indicates details on the execution and, if applicable, the reason for an occurred error.
NotesFunction blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInputs

REQ

LANG_CODE

STRING_NAME

Outputs

DONE

BUSY

ERROR

STATUS

LOCALIZED_STRING
Status codes STATUS values