5.0 Settings and Layout Files

The Commander Control Utility saves two kinds of file: Commander Settings files (.set), which hold the controller's settings and standalone program, and layout files (.lay), which hold the position of the open windows.

Applies to: all controllers.

On this page:

Save the controller settings

  1. Connect to the controller. Save and Open need a connection; without one the message Connect to a Commander first. appears.
  2. Click File > Save > Settings.
  3. The Save dialog opens in the Settings folder with a default name made from the controller model and the date and time: <MODEL>_CommanderSettings_<yyMMddHHmmss>.set, for example CMD-2ED_CommanderSettings_261125143005.set. The file type is shown as <MODEL> Settings (*.set).
  4. Click Save. The program reads every setting from the controller and writes the file. This takes a moment. Click Cancel to save nothing.

Save dialog with the default settings file name

Saving only reads from the controller; it changes nothing.

Return to Top

What a settings file contains

A settings file is a text file with one command per line, in sections:

Section

Contents

Sent on Open

First line

The controller model the file came from, for example CMD-2ED.

No (checked)

Settings

Every read/write setting the model supports, for every axis it has (X/Y, or X/Y/Z/U), plus variables V0–V99, joystick limits, analog and PWM outputs, and the digital and configurable outputs. I/O configuration, soft limits and polarity come first.

Yes

~Standalone

Only when the controller holds a standalone program: the program lines, the Auto Start setting of each program, the error handling setting and the run state of programs 0–3.

Yes, if you agree

~ReadOnly

Reference values: ID, device name, baud rate, enable state, positions, inputs, status and other read-only values.

No

~Errors

Every read that the controller answered with an error.

No

If the controller's firmware reads back WHILE/IF lines of the standalone program incorrectly (V305/V305.1), the program rebuilds those lines. If it cannot rebuild them exactly, the program is written to ~Errors only, so a later Open never writes broken lines.

Return to Top

Open (load) a settings file

Caution: Open writes the settings into the controller and then sends STORE, which saves them in flash memory. It can also replace the standalone program and start programs. Save the current settings first if you may need them.

  1. Connect to the controller and click File > Open > Settings. Select the .set file.
  2. The program checks the first line:
    • Same model as the connected controller: it continues.
    • Another model: These settings were saved from a <model>, but a <model> is connected. The settings do not match the connected device. Load them anyway? Click Yes to continue (the default is No).
    • No model (a file saved by an older version): This settings file does not say which device it was saved from… Load it anyway? Click OK to continue.
  3. It sends the settings. Lines for axes the controller does not have are skipped. Older files that use EXST are translated to EXSTA.
  4. If the file has a ~Standalone section: This settings file contains a standalone program. Load it? It replaces the program in the controller. On Yes, the program stops programs 0–3, writes the program lines, Auto Start and error handling settings, and sends the run state last (which can start programs that were running when the file was saved).
  5. It sends STORE.
  6. A summary shows how many commands were sent, how many lines were skipped and which lines the controller rejected (up to 25 are listed).

Summary after opening a settings file

Return to Top

What is not restored

  • The ~ReadOnly and ~Errors sections, including ID, positions and status.
  • Settings of axes the connected controller does not have.
  • Lines the controller rejects (listed in the summary). Known examples: the CMD-4CR rejects EXSTA and EXSTP lines with firmware V305/V305.1; SR0–SR3 cannot be read on that firmware, so they are saved in ~Errors and not sent back (see 1.6.1 Known Issues).
  • Commands the command table does not mark for any model, and the joystick value JV.

Return to Top

Layout files

A layout file stores which windows are open and where they are, so you can restore your workspace.

Action

Description

File > Save > Layout

Saves the open windows to CCU_SoftwareLayout_<yyMMddHHmmss>.lay (type CCU Layout (*.lay)) in the Layouts folder. Cancelling the Save dialog creates no file.

File > Open > Layout

Opens a .lay file, or an older layout file (choose Older layout files (*.set) in the file type list), and reopens the windows at their saved positions.

Before V3.2.0, layouts were saved as .set, the same extension as settings files. When V3.2.0 starts, it renames the .set files in the Layouts folder to .lay. A file is left alone if a .lay file with the same name exists.

Return to Top

Default folders

Folder

Used for

C:\Users\Public\Documents\Nippon Pulse\Commander Series\Settings

Commander Settings files (.set)

C:\Users\Public\Documents\Nippon Pulse\Commander Series\Layouts

Layout files (.lay)

C:\Users\Public\Documents\Nippon Pulse\Commander Series\Ascript

A-Script folder

C:\Users\Public\Documents\Nippon Pulse\Commander Series\Manuals

Offline manuals for the Help menu

Your Documents folder

Default folder for standalone program files (.prg)

You can save files in any folder; these are the folders the dialogs open in.

Return to Top

Related commands and see also

Related commands: STORE, SA, SLOAD, SAP, SR, EXSTA

See also: 2.1.7 Flash Memory, 2.1.6 System settings, Menu Bar

Return to Top