Overview
When editing the Ladder, you need to define the variables used in the Ladder components.
This definition can be made directly in the Ladder or in the variable list.
The variables table must be activated through the Window > Variables menu, as shown in the following figure:
The following commands are available in the variable editing toolbar:
Add a new variable
Edit the selected variable
Remove the selected variable
Move the selected variable up one row in the table
Move the selected variable down one row in the table
Rename the selected variable
Exports variables from this group to a file
Imports variables for this group from a file
The variables in the GLOBAL scope are grouped as shown in the figure below:
Figure 1 - Variable Editor for the GLOBAL Scope
The following groups are available in this global variables area:
- Constant: variables that store constant values
- Global: variables accessible by all Ladder files
- Retentive Global: similar to the Global group, but with retentive memory*
- System Global: variables previously defined with system functions
- Parameter Global: device variables accessible via Ladder and HMI
- I/O Global: physical inputs and outputs of the device
- Network Global: variables previously defined for network communication
The variables in the LOCAL scope are grouped as shown in the figure below:
Figure 2 - Variable Editor for the LOCAL Scope
The following groups are available in this local variables area:
- Local: variables accessible only by the Ladder being edited
- Retentive Local: similar to the local group, but with retentive memory
NOTE: A retentive memory retains its value even when the device is powered off.