Create a variable in language editors

In language editors, create variables for an instruction. The variable will simultaneously be created in the local variable, global variable, or the defined word grid, depending on the scope you selected.
To create a variable in language editors
  1. Open
    New variable
    by doing one of the following:
    • In the ladder language editor, on an instruction, right-click an operand, and then select
      New variable
      .
    • In the function block diagram language editor, right-click an input reference, output reference, or variable, and then select
      New variable
      .
    • In the structured text language editor, right-click anywhere, and then select
      New variable
      .
  2. In
    New variable
    :
    • On the
      General
      page, enter the variable name. The scope and data type of the variable are automatically filled.
    • On the
      General
      and
      Advanced
      pages, specify other parameters as needed.
  3. Select
    Create
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal