The leader in industrial automation and control solutions

Variable Editor

Step 1: Towards the top-right of MapleLogic, left-click the Options drop-down. Enable Var.Doc Window(V). This will dock the Variable Editor to the display if it is not already enabled.

Double click Variable Editor in MapleLogic
  • Optionally, in the Project Window, left-click to expand Program and double left-click Variable Editor.
Split the variable editor to see all registers in MapleLogic
See all variables within the Variable Editor window in MapleLogic

Step 2: To enable Description and Variable editing, left-click Split and left-click All Var.

BIT and WORD selection of registers to view in MapleLogic

Step 3: Left-click on the BIT or WORD data register type.

  • IMPORTANT: The F Bits and F WORDs are used for internal relay flags. DO NOT EDIT THESE.
View register descriptions and variables in Variable Editor window in MapleLogic

Step 4: Provide a Description and/or Variable for the data registers.

Using Variables

Selecting registers within the application instructions in MapleLogic

This portion of the example uses a Scan program for demonstration.

Step 5: Insert an instruction into the ladder logic. This example uses the ADD instruction for basic addition.

  • For the operands, S1 and S2, the variable names, S1 and S2, can be substituted for the data registers, D0 and D1.
  • For the operand, D, the variable name, Sum, can be substituted for the data register, D2.
    • Under the operand section, the corresponding data registers will appear for confirmation.

Step 6: When finished, left-click OK.

Variable Editor Expanded

Step 1: To expand the functions of the variable editor, left-click More…

Variable Table Expanded Function search, sort, edit, print, export, and import tools in MapleLogic
  • The Find function will search for a keyword in the search bar.
    • This will navigate to the first occurrence of the variable if it is found.
  • The Sort section will sort data registers by BIT, WORD, or both.
  • The Edit section will edit descriptions and variables.
  • The Export/Import section:
    • Import existing variables and descriptions from other projects (.csv format)
    • Export existing variables and descriptions from the current project (.csv format)

Displaying Descriptions and Variables

Data Registers Only

Variable editor data register only display in MapleLogic

This example excludes description and variables

Variable Editor Data Register Only Display Button in MapleLogic

Step 1: To display only data registers, left-click Edit and left-click Device Only.

Variable Name Only

Display Variable Name Only in Scan Program in MapleLogic

This example excludes descriptions.

Variable Name Only Button Display in MapleLogic

Step 2: To display only the variable name, left-click View and left-click Device + Var

Descriptions Only

Display Description Only in Scan Program in MapleLogic

This example excludes variables.

Variable Editor Description Only Button in MapleLogic

Step 3: To display only the description, left-click View and left-click Device + Comt.