Simple multiple text change

<< Click to Display Table of Contents >>

Navigation:  Examples > Change the text of an object >

Simple multiple text change

Previous pageReturn to chapter overviewNext page

Suppose we have some text that, depending on the value of the tag, should have different content. In this case, you need to select the "Tag.PV in range" type in the "Text Input" property.

 

1. Let's create a tag - State, which is responsible for the state of a certain device:

 

clip0036

 

2. Create a Text/EditField object (other objects with the Text Input property can be used):

 

textlabelcommon

 

3. Let the “Text Input” property have the following conditions::

 

State

Text

0

The Pump is not working

1

The Pump is working

2

The Pump is working uncorrectly

3

Pump operation accident

 

In the Object properties, go to the "Text Input" tab, enable the property, bind a tag, select the comparison type "Tag.PV in a range" and fill the ranges in the "Collections":

 

commonmultpletext

textrangemul

 

 

4. Let's Run simulation to check the settings:

 

textinputmul

 

You can download this project here.