Skip to content

About

No description, website, or topics provided.

Resources

Stars

11 stars

Watchers

1 watching

Forks

Repository files navigation

Laser forming on a laser cutter

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.

Bend angle versus number of passes, 1 mm stainless

Quick start

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 browser

The 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.

Documentation

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

Repository map

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/ and laser_forming/ to sit next to python/. Keep that layout.

Status and honesty

  • The CAM app, calculator and analyzer run and pass their self-test. The .chf files it writes load in Mlaser v0.0.1.51 Beta and were used for the test parts in laser_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 .aut files have not been tested. Many gating ideas in docs/MACHINE_NOTES.md are 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.

Safety

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.

License and credits

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.

About

No description, website, or topics provided.

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages