# Duplicating Variables

When designing your project, you may want multiple copies of similar variables. Use [Duplicate] to create multiple copies of a variable.

Note: Array elements, structure elements, and symbol link variables cannot be duplicated.

1. From the [Project Explorer] window, go to [Variables] ➞ [All Variables] to view the variables in the project.
   Note: When duplicating local variables, go to the screen or the content and select [Variables] from the drop-down list to view the local variables.
2. Select the variable you want to duplicate.
3. From the toolbar click the Duplicate icon and the [Duplicate] dialog box appears.
4. Set up the [Duplicate Settings] and click [Next].

   Property | Description
   [Number of Duplicates] | Specify the number (1…500) of duplicate variables to create.

5. Set up the [Copy #1 Device Address / Increment] and click [Next]. A table lists the [Address/Source Property] settings in the variable that will be duplicated.
   Note:
   - If the device address is a string value, such as a symbol name, the same device address is used in duplicated variables.
   - For example settings of [Copy #1 Device Address / Increment] in the table, see the following.
     Example Increment Address Settings
   - Increment address setting is not available for duplicating local variables.
   - In the [Duplicate] dialog box, you can either click [Back] to go to the previous screen, or click [Start over] to return to the initial dialog box.

## Example Increment Address Settings

Variable Name | Source Type | Address/Source Property | Copy #1 Device Address / Increment | Copy#1 | Copy#2
Var1.Value | Internal | Var2.Value | Var+5.Value | Var 7.Value | Var 12.Value
Var100.Value | Schneider Modbus | 40001 | 40003 | 4000 3 | 4000 5

Note:

If new variables need to be created with the [Duplicate] command, the display that follows the increment address settings lists the device address settings. For more information, see the following.

Duplicating Device Addresses