Enforce complete AXIS control inventory

This commit is contained in:
2026-09-07 15:48:49 +08:00
parent 0a679b5eeb
commit bc69c513e3
12 changed files with 261 additions and 54 deletions

View File

@@ -89,7 +89,9 @@ record("program", "Abort after seek", "PROGRAM_ABORT", "axis.py:task_stop", mach
const mdi = await open("xyzac-panel-buttons-mdi");
record("machine", "Power on", "POWER", "axis.py:commands.power", mdi.send("POWER", { active: true }));
record("machine", "HOME ALL", "HOME", "axis.py:home_all_joints", mdi.send("HOME", { all: true }));
record("mdi", "Go", "MDI_EXECUTE", "axis.py:send_mdi_command", mdi.send("MDI_EXECUTE", { block: "G21 G90 G1 X10 Y5 Z5 A30 C45 F100" }));
record("mdi", "Go", "MDI_EXECUTE", "axis.py:send_mdi_command", mdi.send("MDI_EXECUTE", { block: "G21 G90 G1 X0.01 F600" }));
record("mdi", "Motion complete", "SIM_STEP", "LinuxCNC TP queue drain before PLAN_OPEN", mdi.send("SIM_STEP", { cycles: 20 }));
assert.equal(mdi.session.wasmMotion.read().state.queue_depth, 0);
record("mdi", "Invalid G-code", "MDI_EXECUTE", "axis.py:send_mdi_command/error channel", mdi.send("MDI_EXECUTE", { block: "G999" }), "error");
record("mdi", "Load program", "PROGRAM_LOAD", "axis.py:open_file_guts", mdi.send("PROGRAM_LOAD", { source: PROGRAM, path: "mdi-panel.ngc" }));
record("mdi", "Run", "PROGRAM_RUN", "axis.py:task_run", mdi.send("PROGRAM_RUN"));