beckhoff TwinCAT 2 PLC Control — 9.2.2.1 Dynamic Language switching

Visualization For creating a special language file *.vis see the following steps: Open likewise the Visualization settings dialog, Language category. Choose option Language file . In the associate input field enter where you want to store the file. The extension is .vis. You also can use the dialog ' Open file ' by pressing the button . If a language file with the extension .vis is already present, it will be offered to you here. In the input field next to Language you fill in a keyword for the language which is currently used in the visualization, i.e."german" (or "D") then press the button Save .

A file with the extension .vis will be created, which now can be edited by a normal text editor. For example you can open the file by NOTEPAD: You get a list of the text variables for the language currently used in the visualization. It includes a reference to the title of this list, for example "1=german" as reference to the title [german]. You can extend the list by copying all lines, then replacing the German by English text and setting a new title [english]. Beyond the line 1=german you accordingly have to add 2=english.

Example of a language file for a visualisation (Category Language) 9.2.2 Dynamic 9.2.2.1 Dynamic Language switching Dynamic texts allow switching between different, always language-assigned text versions for a visualization elements. 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. Please regard: - The language files for dynamic texts can be created in Unicode (UTF-16) or ANSI (ISO-8859-1). - 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 TwinCAT PLC Control , will not be regarded in online mode! If no target- TwinCAT 2 PLC Control 243 Version: 1.0