{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Schneider Electric Gulf Countries and Pakistan Website

Welcome to our website.
Search FAQs
How to change a text (text, font and background color) using a tag value?

Issue:

How to can we change a text representing the state of a machine based on the value of a variable value?

Product Line:

EcoStruxure Operator Terminal Expert (all versions)

Resolution:

There are many ways to achieve the animation of a text to show the state of a machine based on the value of a status register.

Attached is a small example project Test_Animate_Text.vxdz demonstrating 4 ways of doing it. (Software EcoStruxure Operator Terminal Eexpert v3.3 SP1)

Four methods demonstrated:

1- N-State Lamp object that exist and do just that. It is the easiest method but the object name is misleading.

Insert one N-State Lamp object.

In the Properties, Function - Basic:

Set the Type to Word and State Change Condition to State

Configure the number of States (texts) that are needed. (Note: 4 means states 0 to 3.)

Configure the Variable to the variable for the states.

Under Favorite properties:

For each states, define the Text, the Font Color and the Fill color.

2- Multiple String Display objects and display the right text using the Visibility property:

Insert and configure a String Display object for each state.

Pile them over each other, making sure they have the same size.

Use the Visibility property to make the relevant text visible based on the value of the status register.

For that, the use of Expression Converters that will give a "1" for invisible and a "0" for visible is needed.

Need a converter for each state, the expression will be of the form: [FromData] != (value).

3- One String Display object and modify the text and colors using a script.

Insert and configure one String Display object.

Create a screen script that will modify the String Display properties based on the status register value to set the text, colors, etc.

4- One String Display object and use of Range Converters to change the text and colors.

Insert and configure one String Display object.

Create a Range Converter to modify the text.

Create a Range Converter to modify the text color.

Create a Range Converter to modify the String Display background (fill) color.

Modify to appropriate properties to modify them based on the status register value to which the appropriate converter is applied.

See the project for more details.

Schneider Electric United Arab Emirates

Attachment(s)
Test_Animate_Text.vxdz [26.73 KB]
Explore more
Range:
Articles that might be helpful Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range: