Legacy Factory System Rebuilt Without Source Code

From outdated black-box software to a fully functional, scalable factory control platform
How we recovered a legacy factory system without source code by applying reverse engineering legacy software, hardware integration, and modern architecture delivery to achieve full factory control system modernization.
Legacy Factory System Rebuilt Without Source Code

Client’s Background

The client is a mid-sized manufacturing company based in the USA, New York. Their production lines relied on an aging factory control system that had been developed more than 15 years ago. The system resembled a SCADA environment but had been heavily customized over the years. Crucially, the client did not have access to the source code or any technical documentation.
The software issues were serious: the legacy factory system was already out of support, prone to stability problems, and lacked integration with modern IT systems and end-users’ needs. Every unplanned downtime carried significant financial risk. They found ModLogix team to modernize their software to avoid financial risks due to downtimes and compliance purposes.

Key problems identified:

The system had reached end-of-life and was no longer supported.
No source code was available for modification or extension.
All technical documentation was missing.
The risk of prolonged downtime was increasing with every year.

Project Challenges

Undertaking a software rebuild without source code came with multiple technical and operational challenges:
No source code availability
All functionality had to be reconstructed through observation and reverse engineering legacy software.
Complex integration with aging controllers
Factory lines were controlled by Siemens PLCs using proprietary and undocumented communication protocols.
Undocumented data exchange
The team had to analyze network traffic to understand real-time communication.
Minimal production downtime
Our client could only afford very short maintenance windows, meaning deployment had to be staged and heavily validated.
Future-proof architecture
The replacement system needed to support scalability, modularity, and cloud integration in the future.

Our Solution

We designed a multi-step solution centered on factory software re-engineering and system interoperability with existing hardware. All was done using phased migration approach – to minimize any downtime.

001

Reverse Engineering via Traffic and Interfaces

Using Wireshark and custom analyzers, our professional team captured and decoded communication flows between the old software and PLCs. This approach allowed us to reconstruct command structures, I/O mapping, and timing sequences without the original source code.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

010

Protocol Analysis and Emulation

The system used an undocumented binary protocol layered on top of Modbus and OPC UA. We performed hardware protocol emulation to test message flows and built a custom parser to fully map command-response behaviors.

Illustration circle

Technology Stack

0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
Scope of Work:
1 Full-stack Developer
1 Frontend Developer
1 Manual QA Engineer
1 Automation QA Engineer

Results

The project achieved a full factory control system modernization without access to the original source code. By applying a combination of reverse engineering legacy software, custom driver development, and modern architecture principles, the team delivered a stable, scalable, and well-documented replacement system.

Results

Key outcomes included:

Complete functional recovery of the legacy factory system with zero data loss.
Significantly improved stability at the hardware integration level.
A 40% reduction in maintenance time, enabled by modular architecture and integrated CMMS workflows.
Operator satisfaction improved due to the new UI, real-time dashboards, and simplified alarm handling.
Readiness for cloud integration and AI-driven enhancements, enabling long-term value.

Lessons Learned

01
Reverse engineering is viable — With the right tools and methodology, software rebuild without source code is achievable, but it requires deep domain expertise and careful system validation and testing.
02
Documentation is critical — Part of the project’s value came from technical documentation reconstruction, ensuring the client will never face another black-box scenario.
03
Operator-centric design matters — The UI/UX redesign for operators not only improved usability but also boosted trust in the new system.
04
Future-proofing reduces risk — Building a modular, extensible architecture turned a one-time factory automation upgrade into a platform for long-term growth.

Let’s Start a
Conversation

Share your challenge with us – we want to hear from you!

* Please enter your name
* Please leave a message









    elipse
    Whitepaper.doc
    close
    Get Your FREE Template!

    Please, provide the email address so that we can send the whitepaper to you.

    * Please enter your name








      CHECKLIST.DOC
      close
      Get Your FREE Template!

      Please, provide the email address so that we can send the checklist to you.

      * Please enter your name