Dynamic language switching, Configuration of dynamic language switching, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 790

Advertising
background image

L-force | PLC Designer

PLC Designer Visualization

788

DMS 3.2 EN 02/2011 TD29



20.9.3

Dynamic Language Switching

Dynamic texts allow switching between different, always language-assigned text
versions for a visualization element (texts, texts for tooltips, message texts in alarm
tables). The difference to static texts is that the definite text selection also can be
done via a variable used in the application.

In the configuration of the element a Prefix-ID-combination is entered, which is
assigned to a text in a XML-file (also named “textlist” in the following). The ID can be
defined by a
project variable.

Example of application: The ID represents an error number, as Prefix e.g. “Error” is
used. The language file provides via the Prefix-ID-combination an appropriate error
message, which – depending on the currently set language – will be displayed in this
language.

Note!

The language files for dynamic texts can be created in Unicode (UTF-16) or ANSI
(ISO-8859-1), e.g. " <?xml version='1.0' encoding='UTF-16'?>".

For the Target-Visualization the start language, the directory for the xml-files to be
used and a list of xml-files can be defined by the target system. This allows to
modify these parameters later without the need of creating a new boot project.
Thus in an easy way existing textlists can be modified (start language, texts) resp.
new languages can be added. If the target system is providing such a configuration,
the textlists which are defined for the visualization in »PLC Designer«, will not be
regarded in online mode! If no target-specific configuration is available for the
language switching, then after a modification of the textlists defined in »PLC
Designer« a project download must be done.

20.9.4

Configuration of Dynamic Language Switching

You can control dynamically which text (also alarm message text in an alarm table)
will be displayed in a visualization element resp. as tooltip of an element in online
mode by using Prefix-ID-combinations, each pointing to another text defined in a
XML-file.

For this purpose a XML-file describing the text assignments must be linked to the
project in the configuration of the visualization (‘Extras’ ‘Settings’). The XML-file must

have a certain format. A language code is added to the particular texts, thus later you
not only can switch between different text contents but also language switching is
supported.

Advertising