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