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:
- Create and activate a virtual environment:
python3 -m venv .venv
.venv\Scripts\activate
- Install the dependencies from
requirements.txtin the virtual environment:
pip install -r requirements.txt
- Run the
build.cmdscript:
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:
- 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.
- 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.
- 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.
- License: MIT
- Source: runoneall/abbman
- Prebuilt download: abbman.exe
- RWS docs: Robot Web Services API
此文章已在我的博客同步发布:https://vcblog.eu.cc/a-lightweight-file-management-tool-for-abb-robotware-6-controllers
此文章经过大肥鱼润色
在机器人项目中,程序和配置文件常常需要在电脑与控制器之间来回传输。ABB 的 Robot Web Services(RWS)提供了与控制器交互的接口,而开源项目 abbman 则把常见的文件操作封装成一个桌面 GUI:添加控制器、浏览目录,并上传、下载、重命名或删除文件。
项目地址:github.com/runoneall/abbman
一个界面,聚焦文件管理
abbman 使用 Python 和 Tkinter 构建界面。窗口左侧是控制器列表,右侧展示控制器上的文件和目录;底部则显示系统名称与 RobotWare 版本。连接控制器后,用户可以选择远程目录,双击进入子目录,也可以通过目录栏切换路径。
它支持的文件操作包括:
- 上传:选择本地文件并发送到当前远程目录。
- 下载:将选中的远程文件保存到本地指定位置。
- 改名与删除:对当前选中的远程项目执行操作,并在删除前要求确认。
远程根目录提供 $home、$system、$temp、$backup 等选项。项目定位于 RobotWare 6,实际部署时仍应结合控制器型号、系统配置与现场环境验证兼容性。
RWS 调用如何落到代码里
核心逻辑集中在 main.py。RWSApi 封装了 HTTP 会话,并通过 /rw/system 获取系统信息,通过 /fileservice/ 访问文件服务。请求使用 JSON 参数,响应则从 _embedded._state 中解析系统或文件条目。
项目也对路径拼接和文件名编码做了处理:远程路径会合并根目录、当前目录与文件名,再对路径进行 URL 编码。这些细节让 GUI 的操作能够对应到具体的 RWS 请求,而不必让用户手动构造接口地址。
传输与界面响应
网络操作通过后台线程执行,界面更新则交由 Tkinter 的事件队列处理。这样,连接控制器或浏览远程文件时,窗口不必一直等待网络请求结束。
下载采用分块读取,传输过程中会更新字节数;下载内容先写入目标目录下的临时文件,完成后再替换为最终文件。这个做法能降低传输中断时留下半成品目标文件的风险。上传则通过 HTTP PUT 发送本地文件,界面提供传输提示。
控制器列表保存在用户主目录下的 abbman/robots.json。写入配置时,程序先写临时文件,再用替换操作更新配置文件,有助于避免写入过程中产生不完整配置。
构建与获取可执行文件
项目提供了 Windows 构建脚本,可使用 Nuitka 打包为独立程序。构建要求 Python 3.12 和 venv,步骤如下:
- 创建并激活虚拟环境:
python3 -m venv .venv
.venv\Scripts\activate
- 在虚拟环境中安装
requirements.txt中的依赖:
pip install -r requirements.txt
- 执行
build.cmd脚本:
build.cmd
构建产物位于 build 目录中。
如果不想自行构建,也可以直接下载预构建的可执行文件:abbman.exe。
轻量,也意味着边界清晰
abbman 的优点是目标明确:它不是通用机器人开发环境,而是一个围绕控制器文件服务设计的小工具。项目结构也比较直接,主要应用逻辑集中在单个 Python 文件中。
使用前也有几件事值得留意:
- 确认网络与访问权限。 代码通过 HTTP 访问控制器,并使用固定的摘要认证用户名和密码。部署前应核对控制器的认证配置,并在可信、受控的网络环境中使用。
- 慎重执行远程删除或改名。 虽然删除操作有二次确认,但它仍会直接作用于控制器文件系统。对生产设备操作前,建议先确认目标路径与现场维护流程。
- 先在测试环境验证。 README 目前主要说明项目用途并链接 RWS 文档,尚未提供详细的安装、操作和兼容性说明。对正式控制器使用前,最好先在测试系统上验证目录访问和文件传输行为。
结语
从代码来看,abbman 把 ABB 控制器文件管理中常见的几项操作,做成了一个轻量的桌面界面,并以 RWS 文件服务作为通信基础。对于希望减少手动请求、快速浏览或传输控制器文件的用户,它可以作为一个值得评估的小工具。
它的定位也很明确:专注文件管理,不替代机器人编程、控制器备份或完整的运维流程。 如果准备在实际项目中使用,建议从测试控制器开始,并重点确认认证方式、网络安全和操作权限。
- 开源协议:MIT
- 项目源码:runoneall/abbman
- 预构建下载:abbman.exe
- RWS 文档:Robot Web Services API
Translated by AI from 简体中文Original (简体中文)

1 replies
Sort order