# Changing States on Change in Word Address Bits

Use a single lamp to display in different colors the ON/OFF state of each of the 16 bits in specified variable.

## Example Operation

## Setting Workflow

1. Add Variables
2. Set up Parts

## Add Variables

### Project Explorer : [Variables] ➞ [All Variables]

Add the below variable(s).

#### Variables property:

[Name] | [Data Type]
Var1 | [Word]

## Set up Parts

### Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Drag and drop the following objects from the [Tool Chest] to the screen.

#### N-State Lamp object (Name: N_StateLamp1) properties:

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)