Duplicating Variables
When designing your project, you may want multiple copies of similar variables. Use [Duplicate]
to create multiple copies of a variable.
Array elements, structure elements, and symbol link variables cannot be duplicated.
- From the [Project Explorer] window, go to [Variables] ➞ [All Variables] to view the variables in the project.
When duplicating local variables, go to the screen or the content and select [Variables] from the drop-down list to view the local variables.
- Select the variable you want to duplicate.
- From the toolbar click the Duplicate icon
and the [Duplicate] dialog box appears.
- Set up the [Duplicate Settings] and click [Next].
| Property |
Description |
| [Number of Duplicates] |
Specify the number (1…500) of duplicate variables to create. |
- 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.
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 |
Var7.Value |
Var12.Value |
| Var100.Value |
Schneider Modbus |
40001 |
40003 |
40003 |
40005 |
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