Changing States on Change in Word Address Value

You can monitor the variable value in single lamp by displaying different colors for different values.

You can display up to 256 states.

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] [State]
[Number of States] 16

[Variable]

[Variable] [Name]: Var1
[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)