3.1 USB communication

This page explains how to connect to a controller over USB, and what the program does when the controller answers with an error or stops answering.

Applies to: all controllers. Requires the Commander USB Driver (see 1.5 Installation).

On this page:

Tool bar in USB mode

Connect and disconnect

Button / Display

Description

Refresh button

Tooltip Refresh list of connected controllers. Reads the list of controllers connected by USB again. Disconnect first; otherwise the message Must disconnect first appears.

ID list

All controllers connected to the PC, by name (for example CMD-4CR-01). Select the controller to use.

Connect / Disconnect

Connects to the selected controller. When connected, the button turns red and reads Disconnect; the status bar shows Connected in green, with the controller's ID, serial number and firmware version.

To connect:

  1. Connect the controller by USB and switch it on.
  2. ClickRefresh if the controller is not in the ID list.
  3. Select the controller and click Connect.

When it connects, the program reads the firmware version, ID and serial number, and then shows only the windows and controls the controller supports (see the feature matrix). The main window shows a picture of the controller.

Click Disconnect to disconnect. All open windows close.

Return to Top

Auto ID

If two connected controllers have the same ID, or a controller has an ID above 74, the program starts Auto ID when it starts, so that each controller gets a unique ID.

Return to Top

Lost connection ("Target power OFF")

If the controller stops answering (for example it lost power or the USB cable was unplugged), the program:

  1. Stops sending commands at once.
  2. Disconnects, closes the open windows and reads the controller list again.
  3. Shows the message Target power OFF — The Commander has been disconnected. Click Connect to connect again. once.

Target power OFF message

To reconnect, restore power or the cable, clickRefresh if needed, and click Connect. Nothing is sent to the controller until you do.

An error reply from the controller (see below) is not a lost connection; the program stays connected.

Return to Top

Error replies

When the controller rejects a command, it answers with a reply that starts with ?, for example ?Error Write not allowed. The program shows it as follows:

Where the command was sent

How the error reply is shown

Command box on the tool bar

In the Reply box, like any reply. (no reply) appears if nothing came back.

Terminal

In the terminal window, in red.

Any other window

In a pop-up titled Commander error reply, with the command and the reply. Only one pop-up is shown at a time, and the same command and reply are not shown again within 5 seconds of closing the pop-up (so a window that reads a value repeatedly does not flood you with pop-ups).

Some windows handle error replies themselves and show their own message instead, for example the micro-step lists, Step-N-Loop and the Standalone page.

For the meaning of each error code, see 4.2 Error Codes.

Commander error reply pop-up

Return to Top

Messages

Message

What to do

No Commander available to open

The selected device is not a Commander. Select a controller in the ID list.

Error opening device: <name>

The controller could not be opened. Check that no other program is using it, clickRefresh and try again.

Must disconnect first

Click Disconnect before you refresh the list.

Commander is not connected

A window tried to send a command while no controller is connected. Click Connect.

If no controller appears at all, see Troubleshooting.

Return to Top

Related commands and see also

Related commands: ID, VER, SN

See also: 3.1 USB Communication API, 3.1.13 Communication Error Codes, 4.2 Error Codes

Return to Top