Skip to main content
Version: v9

The Variables window

The Variables window is where every Variable on the Robot is created, found, edited and cleaned up. Variables are global to the Robot, not to a Flow: the same list is visible from every Flow, Subflow and Dashboard.

Opening and arranging the window​

Open the window with the VARIABLES button in the rail on the right of the screen, or with Alt + V. The rail button is there in the Flow Editor, the Subflow Editor, the Robot Visualizer, RobVision and RobSafety once you are logged in, or when no password is set.

The Variables window floating above the Flow Editor, with the table of Variables, the toolbar and the filter chipsThe Variables window floating above the Flow Editor, with the table of Variables, the toolbar and the filter chips

The window floats above whatever you are working on:

  • Drag it by its title bar and resize it from the bottom-right corner. Its position and size are remembered in this browser.
  • Close it with its close button, Esc or the rail button. Esc closes only the topmost floating window, and the window you clicked last is on top.
  • Hide columns (see below) and shrink the window to use it as a live value monitor next to the canvas.

On the Dashboard Editor and the Dashboard Viewer the window opens read-only: you can look at Variables, but not create, delete, import or export them. Open it with Alt + V, or from the Show Problematic Variables message.

The table​

ColumnContent
NameAlways shown. A long name is shortened in the middle, so its start and end stay visible
TypeInteger, Float, Boolean, String, Input, Output, Cart. Pose or Joint Pose
Initial ValueThe configured starting value
Current ValueWhat the Variable holds right now, live. A cell flashes when its value changes
TagsThe labels attached to it

Pose and String values show Hover: point at it to see the full value. The table shows 25 rows per page, and a click on a column header sorts by that column.

Show / hide columns​

The column button in the toolbar hides Type, Initial Value, Current Value or Tags. RobFlow remembers your choice.

Newest updates first​

The toolbar toggle moves the Variable that was written last to the top while a Flow runs. Reordering pauses while the pointer is over the table. Clicking a column header goes back to manual sorting.

Finding a Variable​

Use Search for Variable to search by name. The filter button opens the filter list, and every active filter shows as a chip under the toolbar; remove it with its ×.

FilterShows only Variables that…
Read-onlycannot be written
Persistentsurvive a Robot restart
Unusedare referenced nowhere at all
ProblematicRobFlow has flagged as broken
Bound to Eventraise a good-count or bad-count event
Used inare referenced by the selected Flows, Subflows or Dashboards
Typeare of the selected type(s)
Tagcarry the selected tag(s)
Protocolare mapped to Modbus or Profinet

The filter list with the Used in panel open, listing Flows, Subflows and DashboardsThe filter list with the Used in panel open, listing Flows, Subflows and Dashboards

Used in opens a list of all Flows, Subflows and Dashboards right away. The buttons All, Flows, Subflows and Dashboards each show their count, and a search field (Search Flows/Subflows/Dashboards) narrows the list. Click entries to add them. A Flow counts as using a Variable that only one of the Subflows it calls uses.

Unused means referenced nowhere: no Flow, Subflow, Dashboard, CSV configuration or Workspace. The first use of this filter takes a moment on a large Robot. A spinner shows next to the filter, and Could not load Variable usage. Click to retry. appears if loading fails.

Two of these earn their keep on any real installation:

  • Unused finds Variables left behind by Flows that have since been rewritten. They are safe to delete once you have confirmed no Dashboard reads them — the filter covers Dashboards too.
  • Problematic surfaces Variables whose configuration no longer holds: an I/O Variable pointing at a bank that is no longer attached, or a Modbus mapping whose connection was deleted. Fix these before running a Flow that depends on them.

Creating and editing a Variable​

The + button at the bottom right opens New Variable. Clicking a row opens Edit Variable. Both are floating windows of their own, opened next to the row and widened automatically for pose types. While the editor is open, clicking another row switches it to that Variable.

The Edit Variable window beside the table, showing the name, ID, values, flag switches and Profinet switchesThe Edit Variable window beside the table, showing the name, ID, values, flag switches and Profinet switches

The editor offers these fields, in this order:

  • Variable type, which cannot be changed after the Variable is created
  • Variable name
  • Variable ID, with a button to copy it
  • Initial Value and Current value
  • Variable description
  • Bind to Event and Counter Event, for Integer Variables only
  • Read-only and Persistent
  • Sync to RobCo Studio
  • the four Use Modbus … switches
  • Use Profinet Input and Use Profinet Output, described in Mapping a Variable to a fieldbus
  • Save

For pose types the editor also offers buttons to take the current Pose and to move to the stored one. Their meaning is the same as in the Variable Node.

When editing is possible​

You can edit Variables only in Teach mode or while a Flow is paused. Otherwise a banner above the table says why, and clicking a row does nothing. The banner gives one of these reasons:

  • Variables can only be edited in Teach Mode or while a Flow is paused.
  • Robot is in Error State.
  • The Robot state is not available yet.
  • Robot or Safety Error State

Importing and exporting​

Export Variables writes the selected Variables to a JSON file. Select the rows first: until you do, the button says Select Variables to be exported. You choose which Variables go into the export rather than exporting everything.

Import Variables opens the Import Variables from file dialog and reads such a file back. Where an incoming Variable collides with an existing one you decide what happens per Variable, so importing a shared Variable set onto a Robot that already has its own does not silently overwrite anything.

Export Profinet UDT file produces the PLC-side type definition for the Variables mapped to Profinet. It is available once at least one Variable uses Use Profinet Input or Use Profinet Output. It downloads RobCo_Profinet_Variables.udt and shows which TIA modules the PLC needs. See Mapping a Variable to a fieldbus and Profinet: AuxVariables.

note

An export carries a Variable's Modbus connection details with it. After importing on another Control Unit, verify those connections are reachable there.

Refreshing Modbus values​

Refresh all Modbus Variable values forces an immediate read of every Modbus-mapped Variable. The button is disabled when no Modbus Variables exist, and its tooltip then says No Modbus Variables exist to refresh.

Deleting Variables​

Select the rows, then use the red trash button at the bottom. Until you select a row, its tooltip says Select Variables to delete.

The confirmation first checks where the Variables are used (Checking where these Variables are used...) and then lists the affected Flows, Subflows, Dashboards and CSV Configs. You cannot confirm until that check is done. Click an affected item to open it. Combined with the Used in and Unused filters, this is the safe way to clean up: filter to Unused, select, delete.

warning

Deleting a Variable that a Flow or Dashboard still references leaves that reference broken. Check Used in before deleting, and re-open the affected Flows afterward to confirm they still validate.

Problematic Variables​

A Variable that RobFlow has flagged as broken shows a warning icon in the Name column. Point at it to see the reason in a tooltip. The Show Problematic Variables action in the message opens the window filtered to these Variables.