Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual
Page 292
![background image](/manuals/580725/292/background.png)
AĆ20
A.6.6
Defining the Type of Initialization To Use for a Variable
You can define how a variable is initialized when a program is downloaded to the
Processor and put into run. This is useful for loading a preĆdefined value into a variable
for calculations, modifying values for parameters, or changing a timer's or counter's
preset value. Use the Variable Properties dialog box for the variable whose initialization
method you want to change.
To define the type of initialization to use for a variable
Step 1.
In an offline program, select the instruction containing the variable whose
initialization method you want to change.
Step 2.
From the File menu, choose Properties. The Instruction Properties dialog box
is displayed.
Step 3.
Choose the Variable Properties tab, and select the variable whose
initialization method you want to change.
Step 4.
Choose the variable initialization method you want to use. Choose from No
Init. (No Initialization), User Specified Value, or Retained Value.
Step 5.
If you have chosen User Specified Value or Retained Value, define an initial
value.
Step 6.
Accept the change by clicking OK or Apply.
Step 7.
Save the program, and reload it to the Processor.
Tip
You can change the initial value while editing the program offline or online.