Visualization The list of assignments Prefix-ID-text starts with and ends with . The particular text entries each start with text prefix> and end with . A text entry which is assigned to a Prefix-ID-combination must contain the following lines: For each prefix-ID-combination at least for one language a text entry must be available. E.g. see in the file example shown below: indicates the start of the german version of a text, terminates the text. Dynamic texts on the one hand can serve to display texts in different languages, but of course on the other hand they also can be used to change the content of a text (same language) display dynamically. Example:
You want to have two visualization elements, one for visualizing the current machine identification, the other for visualizing an error message according to a currently given error number: (1) Define in PLC_PRG the following variables: ivar of type INT, defining the current machine identification; errnum of type INT defining the current error number. (2) Configure a visualization element for displaying the current machine identification: a. Enter in category ‚Text’ in the text field: "% " b. Enter in category ‚Variables’ at Textdisplay“: „PLC_PRG.ivar” (3) Configure another visualization element for displaying the error message for the currently occurred error: a.
Enter in category ‚Text’ in the text field: "% " b. Enter in category ‚Variables’ at Textdisplay“: "PLC_PRG.errnum“ (4) Create a xml-file, e.g. with name dynamictextsample.xml, according to the syntax described above, which should look as follows for the current example: deutsch deutsch Arial 0,0,0 -13 700 false false false 0 english Arial 0,0,0 -13 700 false false false 0 TX1200 315 Version: 1.3 = " id=" " "PREFIX" corresponds to the used in the visualization element configuration (category Text); "ID" corresponds to the entry in category 'Variables', Textdisplay ]] Use any string as a 'language' identifier (e.g. "english").
This identifier then will be displayed in the 'Settings' dialog, category Language of the visualization element in the selection list at 'Language'; instead of "TEXT" insert any text which then will be displayed instead of the above defined ID-prefix-combination in the visualization element.