Sign up Log in
n/program · 32m ago · 23 views
u/runoneallMaster
n/programu/runoneall · 32m ago

A lightweight file management tool for ABB RobotWare 6 controllers

This article is also published on my blog: https://vcblog.eu.cc/a-lightweight-file-management-tool-for-abb-robotware-6-controllers

This article was polished by 大肥鱼

In robotics projects, programs and config files often have to be shuttled back and forth between a PC and the controller. ABB's Robot Web Services (RWS) provides an interface for talking to the controller, and the open-source project abbman wraps the common file operations into a desktop GUI: add a controller, browse directories, and upload, download, rename, or delete files.

Project repo: github.com/runoneall/abbman

One window, focused on file management

abbman builds its UI with Python and Tkinter. The left side of the window is the controller list, the right side shows the files and directories on the controller, and the bottom shows the system name and RobotWare version. After connecting to a controller, you can pick a remote directory, double-click into subdirectories, or switch paths using the directory bar.

The file operations it supports:

  • Upload: pick a local file and send it to the current remote directory.
  • Download: save the selected remote file to a location you choose locally.
  • Rename and delete: act on the currently selected remote item, with a confirmation prompt before deleting.

The remote root offers options like $home, $system, $temp, $backup. The project targets RobotWare 6; for real deployments you should still verify compatibility against your controller model, system configuration, and site environment.

How the RWS calls map to the code

The core logic lives in main.py. RWSApi wraps the HTTP session and gets system info via /rw/system and the file service via /fileservice/. Requests use JSON parameters, and responses are parsed from _embedded._state for system or file entries.

The project also handles path joining and filename encoding: remote paths combine the root, current directory, and filename, then the path is URL-encoded. These details let the GUI actions map onto concrete RWS requests without making users hand-craft endpoint URLs.

Transfers and UI responsiveness

Network operations run on background threads, and UI updates go through Tkinter's event queue. That way the window doesn't sit waiting on a network request when you connect to a controller or browse remote files.

Downloads read in chunks and update the byte count as they go; the downloaded content is first written to a temp file in the target directory and then swapped in for the final file. This lowers the risk of leaving a half-finished target file if the transfer is interrupted. Uploads send the local file via HTTP PUT, with a progress indicator in the UI.

The controller list is stored in abbman/robots.json under the user's home directory. When writing config, the program writes a temp file first and then replaces the config file, which helps avoid leaving an incomplete config behind.

Building and getting an executable

The project ships a Windows build script and can be packaged into a standalone program with Nuitka. Building requires Python 3.12 and venv:

  1. Create and activate a virtual environment:
python3 -m venv .venv
.venv\Scripts\activate
  1. Install the dependencies from requirements.txt in the virtual environment:
pip install -r requirements.txt
  1. Run the build.cmd script:
build.cmd

The build output ends up in the build directory.

If you'd rather not build it yourself, you can just grab the prebuilt executable: abbman.exe.

Lightweight also means clear boundaries

abbman's strength is its narrow focus: it isn't a general robotics development environment, but a small tool built around the controller's file service. The project structure is straightforward too — most of the application logic sits in a single Python file.

A few things worth keeping in mind before use:

  1. Check your network and access permissions. The code talks to the controller over HTTP and uses hardcoded digest-auth credentials. Verify the controller's auth configuration before deploying, and use it on a trusted, controlled network.
  2. Be careful with remote delete or rename. Even though deletion has a confirmation step, it still acts directly on the controller's filesystem. Before touching production equipment, double-check the target path and your site's maintenance procedures.
  3. Validate in a test environment first. The README currently mainly describes the project's purpose and links to the RWS docs; it doesn't yet cover installation, usage, or compatibility in detail. Before using it on a production controller, it's best to verify directory access and file transfer behavior on a test system.

Wrap-up

Looking at the code, abbman turns a handful of common ABB controller file-management operations into a lightweight desktop UI, using the RWS file service as its communication layer. For anyone who wants to cut down on manual requests and quickly browse or transfer controller files, it's a small tool worth evaluating.

Its positioning is clear too: focused on file management, not a replacement for robot programming, controller backups, or a full operations workflow. If you plan to use it on a real project, start with a test controller and pay close attention to authentication method, network security, and operating permissions.

Translated by AI from 简体中文

0
1
Log into join the discussion.

1 replies

Sort order
  1. OshekherO Silver 31m ago

    Thanks for sharing.

    0