3.1 USB communication
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:
- Connect and disconnect
- Auto ID
- Lost connection ("Target power OFF")
- Error replies
- Messages
- Related commands and see also

Connect and disconnect
|
Button / Display |
Description |
|
|
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:
- Connect the controller by USB and switch it on.
- Click
if the controller is not in the ID list. - 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.
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.
Lost connection ("Target power OFF")
If the controller stops answering (for example it lost power or the USB cable was unplugged), the program:
- Stops sending commands at once.
- Disconnects, closes the open windows and reads the controller list again.
- Shows the message Target power OFF — The Commander has been disconnected. Click Connect to connect again. once.

To reconnect, restore power or the cable, click
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.
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. |
|
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.

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, click |
|
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.
Related commands and see also
See also: 3.1 USB Communication API, 3.1.13 Communication Error Codes, 4.2 Error Codes