Bend sheet metal with a laser instead of a press brake: scan a defocused beam back and forth across a line and the metal bends a little more on every pass. No tooling, no contact. This repo is the toolchain built for an Excessive Overkill video that does laser forming (and spot welding) inside an ordinary 1200 W fiber laser cutter.
It contains:
| Piece | What it does |
|---|---|
Laser Forming CAM (python/laser_forming_app.py) |
Browser app. Load a flat-pattern DXF, say which lines are bends and to what angle, and it writes a .chf job file (cut outline on layer 1, forming passes on layer 2) for the Mlaser/NexCut software. Estimates run time, stores measured results. |
Bend calculator (python/bend_calculator.py) |
Turns "strip width + target angle" into a number of forming passes using our measured 1 mm stainless data. |
Bend analyzer (python/bend_analyzer.py) |
Measures bend angles on flatbed-scanner images of test coupons (OpenCV) so you can feed real results back in. |
File format + protocol notes (docs/) |
Reverse-engineered .chf / .aut job format, controller Ethernet protocol, machine parameters, laser-forming literature notes. |
| Test files | Example DXFs, .chf/.aut jobs we ran, coupon scans, parameter files, spot-welding tests. |
git clone https://github.com/<you>/laser-forming.git
cd laser-forming/python
python laser_forming_app.py # opens http://127.0.0.1:8750/ in your browserThe CAM app needs Python 3.10+ and nothing else (standard library only). Try it with
dxf files/basic hexagon cup.dxf. Only the bend analyzer and plotting script need extra packages:
pip install -r requirements.txt. Full steps in docs/SETUP.md.
| Read this | For |
|---|---|
| docs/SETUP.md | Install, verify with the self-test, network and firewall notes |
| docs/USAGE.md | Every feature of the CAM app, the calculator, and the analyzer |
| docs/WORKFLOW.md | End to end: DXF to bent part to improved calculator; spot welding |
| laser_forming/LASER_FORMING_RESEARCH.md | Literature review and starting parameters (fiber and CO2, metals and plastics) |
| docs/CHF_AUT_FORMAT.md | .chf / .aut file format reference, for generating jobs yourself |
| docs/MACHINE_NOTES.md | The machine, the vendor software internals, ideas for gating the laser on a fast path |
| docs/CONTROLLER_PROTOCOL.md | UDP protocol between the PC software and the motion card |
| docs/THIRD_PARTY.md | Vendor software, manual and papers that are not in this repo, and where to get them |
python/ the tools (laser_forming_app.py, bend_calculator.py, bend_analyzer.py, plot_bend_data.py)
lf_projects/ saved CAM projects (.lfproj, JSON, includes the DXF)
lf_exports/ .chf files exported by the app
lf_measurements/ measurements.json, the log of target vs measured bend angles
out/ analyzer output (angles CSV/JSON) from our two coupon scans
dxf files/ flat-pattern DXFs (hexagon cup, C channel, closed cube, fan, ...)
laser_forming/ jobs and parameter files used on the machine, research notes
laser_welding/ spot-welding test files
example files/ one-feature-at-a-time .chf/.aut samples used to work out the file format
machine/ machine parameter dump, layer settings, packet capture
docs/ documentation
The app expects
dxf files/andlaser_forming/to sit next topython/. Keep that layout.
- The CAM app, calculator and analyzer run and pass their self-test. The
.chffiles it writes load in Mlaser v0.0.1.51 Beta and were used for the test parts inlaser_forming/. - The bend calculator is fitted to one material only: 1 mm stainless steel, 2 to 64 mm wide strips, measured on one machine. Anything else is an extrapolation. Measure and adjust.
- Hand-generated
.autfiles have not been tested. Many gating ideas indocs/MACHINE_NOTES.mdare untested. Confidence tags ([C] confirmed, [I] inferred, [?] unknown) are used throughout the notes. - The starting parameters in the research notes are scaled estimates, not results from this machine.
Laser forming runs a 1200 W laser with the head far above the work, follow off, in front of mirror-like bent flaps. Beam reflections, fire, and the head hitting a raised flap are real hazards. Use proper eye protection and enclosure, no oxygen assist, supervise every run, and keep the controller on an isolated network (the protocol has no authentication). You are responsible for your own machine and safety interlocks.
Code and documentation: MIT. Mlaser, NexCut, Au3tech, GWeike and other names belong to their owners; this project is independent and not affiliated with or endorsed by them. See docs/THIRD_PARTY.md.
