Use a single lamp to display in different colors the ON/OFF state of each of the 16 bits in specified variable.
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] | [Bit] | |||||
| [Number of States] | 16 | |||||
[Variable] |
[Variable]
[Name]: Var1 |
|||||
| [Bit Position] | [Low Bit] | |||||
| [Undefined Bits] | [Ignore] | |||||
| [Shape] | [Text] |
[States] |
[State 0] to [State 15] | [Text] | State * (Type the status number in "*") | |
| [Basic] | [States] | [State 0] to [State 15] | [Fill] | [Type] | [Solid] | |
| [Value] | [ID] ID:(Any) | |||||