Textvariables

In category ‘Textvariables’ of the dialog for configuring visualization elements you can specify a variable which should dynamically set color and font of that string which is defined in category ‘Text’ ( Text). At best enter the variable name with the aid of the input assistant (F2).

You can also use components of the structure VisualObjectType to set the text properties. For this see the description of category ‘Programability’ ( Programmability); there you will find the possible values of the particular structure components and their effect.

Note

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 concerning according to which a value might be overwritten in online mode by another.

The parameters of the dialog:

Parameter: Meaning: Example entry of project variable: Example Usage of variable in program: corresponding component of structure VisualObjectType:
Textcolor: Text color “plc_prg.var_textcolor”

var_textcolor=16#FF00FF

-> Farbe

dwTextColor
Textflags: Alignment (right, left, centered…) “plc_prg.textpos”

textpos:=2

-> Text right justified

dwTextFlags
Fontheight: Font height in Pixel “.fonth”

fonth:=16;

-> Font height 16 pt

ntFontHeight
Fontname: Font name “vis1.fontn”

fontn:=arial;

-> Arial is used

stFontName
Fontflags: Font display (bold, underlined, italic…) “plc_prg.fontchar”

fontchar:=2

-> Text will be displayed bold

dwFontFlags
../_images/0ae515d952e096590a317f3471093def