beckhoff TwinCAT 2 PLC Control — 9.2.2.3 XML File for dynamic Texts

Visualization Define the text format in configuration dialog 'Text': In the Content field, insert a placeholder "% " at that position of the text, where you want to get displayed a dynamic text in online mode. Instead of "PREFIX" you can enter any desired string. See the description for the 'Text' configuration dialog. For each prefix-ID-combination, which is found in a linked XML-file, the assigned text will be displayed in the visualization element in online mode. If no appropriate entry is found, no replacement will be done. 9.2.2.3 XML File for dynamic Texts For a description how to use dynamic texts in the visualization see 'Settings', category Language.

The underlying file must be available in XML format ( .xml). In this file texts are assigned to identifiers (which are a combination of a prefix and a ID). These prefix-ID combinations can be entered in the configuration of a visualization element. In the header section of the file a default language and a default font assigned to a language can be defined. The descriptions in the xml-file are enclosed by tag and which have to be entered at the beginning resp. end of the file. The language files for dynamic texts can be created in Unicode (UTF-16) or ANSI (ISO-8859-1). This is to be defined via the encoding syntax at the beginning of the xml-file. See a file example below.

Primary formats of the xml-file, which do not use the \ tags or the header section, will be supported further on! The Target-Visualization offers an interface for scanning the entries of dynamic textlists. Thus those can be used directly in the program. The header section starts with and is closed with . If you want to define a default language, use entry . A default font which is assigned to a certain language, can be defined via entry default-font> . These entries are optional. If they are missing, the dynamic text in the visualization will be displayed according to the local configuration settings of the visualization. TwinCAT 2 PLC Control 245 Version: 1.0