code wiki / _hdl_build / nx_metal_gcode.nx
nx_metal_gcode.nx
buildroot/runtime/_hdl_build/nx_metal_gcode.nx
about
nx_metal_gcode.nx -- LIB: the METAL (WAAM = Wire Arc Additive Manufacturing) G-code emitter -- 3D-printing
workstream R3, completing the material ladder filament -> concrete -> METAL. Deposits steel as weld beads:
each layer turns the arc ON (M3 S<amps> + wire feed), traces the perimeter, turns the arc OFF (M5), then
DWELLS (G4 P<ms>) for inter-layer cooling -- the WAAM-critical step that prevents heat accumulation/warping.
Reads the steel profile from print:mat:steel_waam (thin layers ~1mm). CARDINAL 26 (never-brick): motion +
arc-control + wire-feed only (G21/G90/G28/G92/G0/G1/M3/M5/G4/M84) -- NO firmware/EEPROM writes. HONEST SAFETY:
arc welding is high-power + hot; a real-hardware run requires operator safety interlocks (future, gated) --
this rung EMITS the G-code file only. Integer mm math. license_tier: ORIGINAL
dependencies 4 imports · 2 importers
imports: nx_print_material.nxnx_food_science.nxnx_seg_store.nxnx_syscalls.nx
imported by: nx_metal_gcode_gate.nxnx_print_dispatch.nx
structs
| none |
consts
| none |
functions
| 14 | func mg_move(out: *u8, off: i64, x: i64, y: i64, e: i64) -> i64 |
| 24 | func mg_emit(prefix: *u8, w: i64, d: i64, h: i64, out: *u8) -> i64 |