An animation of the text display can be configured in the property “Font variables”. All basic elements have this property as well as tables, scrollbars and text fields.
Example: animating the font size
Requirement: A project with a visualization is open.
-
Open the visualization and add an element “Rectangle”.
The view “Properties” displays the configuration of the element.
-
Configure the property “Texts Text” with
Important
: -
In the application in the POU
PLC_PRG
, declare a type-compliant variable:iFontHeight : INT;
-
Configure the property “Font variables Size” with
PLC_PRG.iFontHeight
. -
Implement a change of the font size.
iFontHeight := iFontHeight + 1) MOD 20;
-
Compile, load and start the application.
The application runs. The visualization opens. The rectangle is labelled with
Important
. The font size grows from 1 to 20.