The color and shape of the lamp changes based on which range the value of the variable falls into.
You can display up to 256 states.
Add the below variable(s).
| [Name] | [Data Type] |
Var1 |
[Word] |
Drag and drop the following objects from the [Tool Chest] to the screen.
| Tab | Sub Tab | Property | Value | |||
| [Function] | [Basic] | [Type] | [Word] | |||
| [State Change Condition] | [Range] | |||||
| [Number of States] | 4 | |||||
[Variable] |
[Variable]
[Name]: Var1 |
|||||
[State Condition] |
[Condition] | 0 <= X < 50 | ||||
| [Condition] | 50 <= X < 100 | |||||
| [Condition] | 100 <= X < 150 | |||||
| [Shape] | [Text] | [States] | [State 0] | [Text] | State 0 | |
| [State 1] | [Text] | State 1 | ||||
| [State 2] | [Text] | State 2 | ||||
| [State 3] | [Text] | State 3 | ||||
| [Basic] | [States] | [State 0] to [State 3] | [Fill] | [Type] | [Solid] | |
| [Value] | [ID] ID:(Any) | |||||