Complete 3axis tutorial native and Web/WASM parity tools

This commit is contained in:
2026-08-24 14:01:30 +08:00
parent 938654b19d
commit 7e90142b63
147 changed files with 17639 additions and 557 deletions

20
run-3axis-tutorial.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
LINUXCNC_ROOT="/home/mes006/linuxcncWebWASM/linuxcnc"
CASE_INI="${LINUXCNC_ROOT}/configs/sim/axis/vismach/3axis-tutorial/3axis-tutorial.ini"
PROGRAM_FILE="${LINUXCNC_ROOT}/configs/nc_files/3dtest.ngc"
if [[ ! -f "${CASE_INI}" ]]; then
printf '3axis-tutorial configuration not found: %s\n' "${CASE_INI}" >&2
exit 1
fi
if [[ ! -f "${PROGRAM_FILE}" ]]; then
printf '3axis-tutorial program not found: %s\n' "${PROGRAM_FILE}" >&2
exit 1
fi
cd "${LINUXCNC_ROOT}"
# -r keeps LinuxCNC diagnostics in the terminal opened by the desktop shortcut.
export AXIS_OPEN_FILE="${PROGRAM_FILE}"
exec /usr/bin/linuxcnc -r "${CASE_INI}"