# Changing Messages on Change in Word Address Value (Range)

Change messages based on the integer variable value range.

Displayed Message | Variable Value Range
High | 50-99
Middle | 10-49
Low | 0-9
Out of Range | -1 or less, 100 or more

## Example Operation

## Setting Workflow

1. Add Variables
2. Add Language Table
3. Add Converters
4. Set up Parts

## Add Variables

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

Add the following variable(s).

#### Variables property:

[Name] | [Data Type] | [Source] | [Device Address]
Var1 | [INT] | [Schneider Modbus Serial Equipment] | 400001

## Add Language Tables

### Project Explorer : [Language Table] ➞ [All Languages]

Add the following language table(s) and text(s).

#### Set the text in language table(s):

No | 1 Table1 (English_Gothic)
1 | High
2 | Middle
3 | Low
4 | Out of Range

## Add Converters

### Project Explorer : [Converters] ➞ [User-Defined Converters]

Add the following converter(s).

[Name] | [Type]
Converter1 | [Range]

#### Converter1 property:

Tab | Property | Value
[Basic] | [Data Type (Source)] | [Numeric]
[Data Type (Result)] | [LanguageText]
[Range] | 5
| [Range 1] | [Data (Input)] | 99
[Operator] | >
[Data (Output)] | [LanguageTable Text] [ID]: [4:Out of Range]
[Range 2] | [Data (Input)] | 49
[Operator] | >
[Data (Output)] | [LanguageTable Text] [ID]: [1:High]
[Range 3] | [Data (Input)] | 9
[Operator] | >
[Data (Output)] | [LanguageTable Text] [ID]: [2:Middle]
[Range 4] | [Data (Input)] | 0
[Operator] | >=
[Data (Output)] | [LanguageTable Text] [ID]: [3:Low]
[Else Condition] | [Data (Output)] | [LanguageTable Text] [ID]: [4:Out of Range]

## Set up Parts

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

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

#### Numeric Display object (Name: NumericDisplay1) properties: A-1

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [Current Value] | [Variable] [Name]: Var1

#### Text Box object (Name: TextBox1) properties: B-1

Tab | Sub Tab | Property | Value
[Shape] | [Text] | [Text] | [LanguageTable Id] [Name]: Var1 [Converter]: [User-Defined Converters] [Converter1]