HeadlinesBriefing favicon HeadlinesBriefing.com

Retrofitting Vintage Fanuc CNC: Serial Port Struggles Lead to Rust Transpiler

Hacker News •
×

Nia Schlegel documented their battle with a 1980s Fanuc 0M control system on a Hermle UWF 851 machining center. After months of electrical upgrades and alarm troubleshooting, the real challenge emerged: getting modern computers to talk to obsolete serial hardware. The machine's DB25 serial port refused all standard adapters, leaving Schlegel unable to load CAM-generated programs.

The electrical situation alone reads like a comedy of errors. Their landlord's promise of three-phase power delivered just 16 amps, causing breakers to trip 70% of startup attempts. Installing a twenty-meter 5×16² cable through neighboring businesses finally provided adequate 63A service. Once powered reliably, servo alarms plagued every axis until limit switch adjustments and gear coupling tightening restored basic functionality.

Serial communication proved equally maddening. Three different adapter combinations failed completely across multiple operating systems. Thousands of manual pages revealed missing documentation for the exact procedure. Desperation led to ordering two more Amazon adapters that finally established communication - though programs arrived in an unfamiliar EIA format requiring custom parsing.

Schlegel's Rust transpiler now handles the EIA format decoding, but sending data triggers a 086 P/S ALARM indicating missing DR signals. The project demonstrates how legacy industrial equipment demands both vintage troubleshooting skills and modern software solutions to bridge decades-old protocols.