支持真实G代码程序执行
结论:AXIS 风格浏览器仿真页面新增 Open Program、runProgramText 和 loadProgramFile,支持用户提供的 G-code 文本/文件通过 LinuxCNC WASM 执行并参与回放。
This commit is contained in:
@@ -56,6 +56,7 @@ The current simulation page already has:
|
||||
|
||||
- LinuxCNC interpreter WASM execution through `createLinuxCncInterpSdk()`;
|
||||
- selectable test programs under `runtime/ui/simulation/programs/`;
|
||||
- custom G-code text and browser File execution through LinuxCNC WASM;
|
||||
- canonical output rendering;
|
||||
- program-line rendering;
|
||||
- motion table;
|
||||
@@ -125,6 +126,8 @@ Current implemented regions:
|
||||
|
||||
### Phase 2: Program Execution Workflow
|
||||
|
||||
Status: active; custom text/file execution is implemented.
|
||||
|
||||
Upgrade the G-code pane and execution controls:
|
||||
|
||||
- load a selected built-in test program;
|
||||
@@ -133,6 +136,8 @@ Upgrade the G-code pane and execution controls:
|
||||
buttons;
|
||||
- highlight active G-code line and current motion row;
|
||||
- show run status, source program, motion count, and current frame.
|
||||
- load operator-provided G-code text through `runProgramText()`;
|
||||
- load browser `File` objects through `loadProgramFile()`;
|
||||
|
||||
Built-in test programs must live in:
|
||||
|
||||
@@ -224,6 +229,8 @@ Required methods:
|
||||
- `play()`;
|
||||
- `pause()`;
|
||||
- `finishPlayback()`;
|
||||
- `runProgramText(programText, metadata)`;
|
||||
- `loadProgramFile(file)`;
|
||||
- future: `loadProgramText(text, metadata)`;
|
||||
- future: `loadMachineSessionFromOpfs(options)`;
|
||||
- future: `getMachineReadiness()`;
|
||||
|
||||
Reference in New Issue
Block a user