Skip to main content

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:

Variables Window

The following commands are available in the variable editing toolbar:

  • Add Variable Add a new variable
  • Edit Variable Edit the selected variable
  • Remove Variable Remove the selected variable
  • Move Up Move the selected variable up one row in the table
  • Move Down Move the selected variable down one row in the table
  • Rename Variable Rename the selected variable
  • Export Variables Exports variables from this group to a file
  • Import Variables Imports variables for this group from a file

The variables in the GLOBAL scope are grouped as shown in the figure below:

Global Variables

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:

Global Variables

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.