beckhoff TwinCAT 2 PLC Control — 9.1.4.1 Configure Visualization Elements

Visualization Between the placeholders you can insert any text strings: %Today is %d.%m.%y -> Display in online mode: Today is 28.08.02 If a text string is to be transferred into a translation file, which will then be used in Online mode to enable switching into another national language, it must be delimited at the beginning and end by #. Examples:

"#Pump 1#" or else even "#Pump# 1" The second case might for example, in the event of multiple occurrences of the text Pump (Pump 1, Pump 2, etc.), prevent multiple appearances in the translation If you include" % " into the text, you can enter instead of "PREFIX" a certain string, which will serve as an identifier concerning the use of dynamic texts. The prefix will be used together with an ID number, which is to be defined in the 'Variables' category of the configuration dialog in field 'Textdisplay'.

The combination references to a certain text, which is contained in a xml-file listing all possible dynamic texts.Thus at run time the text which is indicated by the current ID-Prefix-combination will be displayed. For further information see also the description of 'Settings', category Language The configured text will appear online in the prescribed alignment within the element: horizontallyleft , center or right and verticallytop , center or bottom . If you use the Font button, a dialog box for selection of the font will appear. Select the desired font and confirm the dialog with OK .

With the Standard - Font button you can set the font that is selected in the project options ('Project' 'Options' 'Editor'). If the font is changed there, then this font will be displayed in all elements except in those elements for which another font has explicitly been selected by using the Font button Textvariables Dialog Box for Configuring Visualization Elements (Text Category) variable which should dynamically set color and font of that string which is defined in category 'Text'. At best enter the variable name with the aid of the input assistant ( ). You can also use components of the structure VisualObjectType to set the text properties.

For this see the description of category 'Programability'; there you will find the possible values of the particular structure components and their effect. If there are corresponding static definitions in category 'Text', these will be overwritten by the dynamic parameter values In case of multiple definition of an element property consider the specific order of precedence con- cerning according to which a value might be overwritten in online mode by another. TwinCAT 2 PLC Control 202 Version: 1.0