We Open-Sourced Our Atlas Copco Open Protocol Library

February 17, 2026 By harshadjoshi

Ever wondered why connecting to industrial nutrunners (those torque tools that tighten bolts in factories) is harder than it should be? There’s a standard protocol. There’s documentation. There are even a few libraries on GitHub.

But try using them in a real factory and things fall apart quickly. Network cable gets unplugged? Connection’s dead. Multi-spindle tool? Good luck getting all the results. VIN traceability? Hope you enjoy debugging at 2 AM when the line is down.

We’ve built enough IIoT gateways and OPC UA servers for automotive plants to know these pain points well. So we wrote our own library, used it in production for a while, and today we’re open-sourcing it.

What We Built

It’s called node-nutrunner-open-library. A Node.js client for Atlas Copco Open Protocol (also works with Stanley, Desoutter, Ingersoll Rand). But the goal wasn’t just “implement the protocol” – it was “actually work on a factory floor.”

GitHub: https://github.com/hj91/node-nutrunner-open-library
Install: npm install node-nutrunner-open-library

Why This Matters

Most existing Open Protocol libraries suffer from the same issues:

  • No automatic reconnection – Connection lost? It’s gone forever.
  • TCP fragmentation ignored – Parsers break when packets arrive split.
  • Missing safety interlocks – Nothing stops unsafe operations.
  • Poor multi-spindle support – Tools get stuck waiting for results that never arrive.
  • No VIN lifecycle management – VIN stays locked across job changes.

These aren’t theoretical problems. These are 2 AM debugging sessions on factory floors where every minute of downtime costs money.

Key Features

Automatic Reconnection
Network hiccup? Controller reboot? It handles it. Exponential backoff, automatic resubscription, the whole thing. Because Ethernet cables get bumped on shop floors.

Safety Interlocks
Can’t start tightening without a job selected. Can’t run with alarms active. Can’t skip VIN download if required. Same rules the controller enforces, now in your code.

VIN Traceability That Works
For automotive work, every bolt needs to trace back to a VIN. The library handles VIN lifecycle correctly – locks on first tightening, clears on job change. Exactly like the real workflow.

Multi-Spindle Support
Aggregates all spindle results with a watchdog timer for missing packets. Tools with 2+ spindles just work.

Batch Production
Real-time progress events for your HMI or MES system. Track batch completion without polling.

What’s Included

  • 50+ MID (message) types covering all common manufacturing workflows
  • Full VIN/identifier traceability
  • Batch manufacturing support
  • Multi-spindle tools with auto-detection
  • Alarm handling and recovery
  • Job and parameter set management
  • Controller time synchronization
  • Zero npm dependencies (just Node.js core)

Easy Integration

Works with whatever you’re building:

  • OPC UA servers – Expose nutrunner data as OPC UA variables
  • InfluxDB – Store every tightening in time-series database
  • MQTT gateways – Publish to MQTT broker for IIoT
  • Custom MES connectors – Event-driven API makes integration straightforward

The library includes 8 complete examples covering basic tightening, VIN traceability, batch manufacturing, alarm handling, fleet management, and integration patterns for InfluxDB, OPC UA, and MQTT.

Supported Hardware

  • Atlas Copco PowerFocus 4000/6000/PowerMACS
  • Stanley Assembly Technologies
  • Desoutter CVI controllers
  • Ingersoll Rand QX Series

Why Open Source It?

Because the existing options weren’t good enough. Most Open Protocol libraries on GitHub are either demo code that works once, abandoned projects from 2017, or missing critical features like reconnection and multi-spindle support.

We built this for our own projects. Used it in production. Fixed all the weird edge cases. Figured we should share it.

It’s Apache 2.0 licensed. Use it commercially, modify it, whatever.

Try It

bashnpm install node-nutrunner-open-library

Full documentation, API reference, and working examples:
https://github.com/hj91/node-nutrunner-open-library

Bug reports and contributions welcome.

Previous Posts

February 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
232425262728  

RSS Latest from Bufferstack.IO

  • We Open-Sourced Our Atlas Copco Open Protocol Library February 17, 2026
    Ever wondered why connecting to industrial nutrunners (those torque tools that tighten bolts in factories) is harder than it should be? There’s a standard protocol. There’s documentation. There are even a few libraries on GitHub. But try using them in a real factory and things fall apart quickly. Network cable gets unplugged? Connection’s dead. Multi-spindle […]
    harshadjoshi
  • We have something for Mitsubishi FA product users November 10, 2025
    We’ve been working on a new tool and wanted to share it with you. What We Built?It’s called the Bufferstack.IO MCProtocol OPC UA Server. Basically, it helps connect Mitsubishi PLCs to any software that speaks OPC UA. Why We Made It?A few months back, we wrote about how hard it is to find good libraries […]
    harshadjoshi
  • Why AI/LLM Integration Remains Unfeasible in India’s Industrial Automation Sector – 2025 Reality Check August 25, 2025
    As we step deeper into 2025, the buzz around integrating advanced technologies like Artificial Intelligence (AI), Large Language Models (LLMs), and Model Context Protocol (MCP) servers into India’s industrial automation sector is louder than ever. MCP servers, for those unfamiliar, act as a bridge enabling LLMs and AI agents to securely interact with real-world tools, […]
    harshadjoshi
  • The Scarcity of Open-Source Libraries for Mitsubishi PLC MC Protocol, SLMP, and CC-Link June 11, 2025
    Ever wondered why open-source is booming in Information Technology (IT) but remains a rare sight in the industrial Operational Technology (OT) landscape? Our latest analysis, drawing from the “The Scarcity of Open-Source Libraries” report, unpacks this significant divide, especially concerning proprietary Programmable Logic Controller (PLC) protocols from industry giants like Mitsubishi Electric. While a staggering […]
    harshadjoshi
  • Bufferstack.IO OPC UA MTConnect Adapter Development Notes April 4, 2025
    As software engineers, we often dive into solving problems headfirst, eager to write code and see results. But a recent experience reminded me of the importance of following a proper engineering approach—especially when dealing with complex standards like MTConnect. Here’s a blog post about how we resolved a tricky issue, the time we wasted by […]
    harshadjoshi
  • Introducing Bufferstack.IO Universal OPCUA Server Shareware November 29, 2024
    We are excited to announce the release of our latest shareware application: the Bufferstack.IO Universal OPCUA Server. This versatile tool is designed for developers, engineers, and learners to explore OPC UA server functionality, integrate with Modbus devices, and evaluate secure industrial communication standards. This shareware version is intended for evaluation purposes only. What is the […]
    harshadjoshi
  • Enhancing Security on Bufferstack.IO Super Container OS with TOTP July 22, 2024
    How to add totp security feature to Bufferstack.IO Super Container OS and this information can also be used for other #Debian derived distros.
    harshadjoshi
  • Super Container OS Release Notes 14-06-2024 June 14, 2024
    The Bufferstack.IO team is thrilled to announce the latest iteration of Super Container OS, bringing a wave of advancements for streamlined container orchestration and infrastructure deployment. This release empowers developers and IT professionals with a robust platform to manage their containerized applications with greater ease and efficiency. Enhanced Core: Streamlined Infrastructure as Code: Vagrant is […]
    harshadjoshi
  • IIoT Gateway Release Notes 11-06-2024 June 11, 2024
    June begins with the release of next generation updated version of Bufferstack.IO IIoT Gateway, which like its previous releases is a Linux based Live+Install iso IIoT Gateway now focuses on designing, testing and deploying Smart Factory applications using latest version of Bufferstack.IO IIoT Middleware (based in Node-RED 3-1-9) and includes many custom developed nodes by […]
    harshadjoshi
  • Introducing Web browser based Andon System May 25, 2024
    I am pleased to Introduce Web Andon System based on Bufferstack.IO industrial Systems Framework – it is designed to meet the demands of modern manufacturing environments, our Web Andon Display provides real-time monitoring and visualization of critical parameters essential for maintaining operational efficiency and productivity. With customizable features, including company name and logo display, shift […]
    harshadjoshi