<< Click to Display Table of Contents >> Simple multiple text change |
|
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:
2. Create a Text/EditField object (other objects with the Text Input property can be used):
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":
4. Let's Run simulation to check the settings:
You can download this project here.