Rockwell Automation AutoMax Enhanced Ladder Editor User Manual
Page 64

5Ć18
When you select an offline program window or the Verify output
window, the Set/Force/Unforce dialog box remains in its current
state.
5.12.1
Setting Variables
To set a variable is to write a value to it that can be overĆwritten by
any of the following:
D an instruction in the same program
D another program referencing the same variable
D by an external device if the variable is mapped to an input
You can set any global variable in the configuration or any local
variable present in a task that is loaded into the rack.
To set a variable
Step 1.
Make sure an online program window is open.
Step 2.
Do one of the following:
D Click on
or
D From the Online menu, choose Set/Force/Unforce.
The Set/Force/Unforce Variables dialog box is displayed.
You should keep this dialog box open while you are
setting, forcing, or unforcing multiple variables.
Step 3.
If you want to set a local variable, enter the name of the
program in which the variable is used in the Program
field. If the variable is a global one, leave the field blank.
Step 4.
Enter the name of the variable to be set. Only simple
variables and array elements can be set.
If you had a simple variable selected before you chose
the Set/Force/Unforce command, this variable is the
default. If no variable was selected, the last variable set,
forced, or unforced is the default.
Step 5.
In the Value/State field, enter the value or state to set.
For Boolean variables, the valid range is on, off, true,
false, T, F, 1, or 0. You can enter either decimal or
hexadecimal values for nonĆBoolean variables.
Step 6.
Click Set to set the variable.
Note: A value displayed in the Value/State field is the last value set; it
is not the current value. The value in this field is not monitored.
Tip
To quickly fill in the Program and Variable Name field for a local
variable you want to force, select the variable in the program before
choosing the Set/Force/Unforce command. Selecting a global
variable in the program before choosing the Set/Force/Unforce
command fills in the Variable Name field in the Set/Force/Unforce
dialog box.