Hello and welcome to a new guide on how to best use Movicon.NExT™.
In this technote, we will show you how to animate text in Movicon.NExT.
You can use an Animated Text object from the Text folder in the Toolbox library offered by Movicon.NExT, or you can use the Border Color animation.
This guide will use an example to give you a better idea of how this is done.
This example is very simple: a screen will be created with a Display object associated with a tag, which will control the animation with its value, an Animated Text object and a Text Box object with Border Color animation.
After having launched the Movicon.NExT development environment and created, or loaded, a project, proceed with creating the tag which will be used to animate the objects. To do this:
Name | Var1 |
Model Type | Variable |
Data Type | Int16 |
Once you have finished configuring the tag, save the project by clicking Save all icon on the Movicon.NExT editor’s toolbar.
Now create a screen if not already done so:
Once the screen has been created, you can then change the project's properties by inserting the screen as the project's Main screen which will show when the project starts up. To do this:
Once you have finished configuring the project startup page, click on the Save All icon located on the toolbar at the top to save the project.
Double-check that the Main screen is open and then click on the Toolbox tab on the far right of the editor next to the Properties window.
Drag the Text Box and Animated Text objects from the Texts folder and the Display object from the Display folder onto screen.
Assign the Var1 tag to the Display and the Animated text objects by entering it in the Tag property field or by dragging it from the project and dropping it onto the objects.
Now select the Display object and open its Properties window to configure it in this way:
Next select the Dynamic Text object and open its Properties window to configure it in this way:
After you have done this, Configure the Text object by first selecting it and opening its Properties window, then:
Click on the Save All icon located on the toolbar at the top of Movicon.NExT editor to save the project.
Test everything you have just created by clicking the Start Runtime icon to launch the project into runtime.
When you change the value of the Var1 tag at runtime using the spin provided by the Display object at runtime, the animation should activate, and the Text Box and Animated Text will animate as a consequence based on the values set in their configurations.