新增真实G代码编辑区
结论:AXIS 风格浏览器仿真页面新增可编辑 G-code pane、Run Editor Text、get/setProgramText 和 runEditorProgramText,编辑后的真实 G-code 继续通过 LinuxCNC WASM 执行并纳入 browser gate。
This commit is contained in:
@@ -57,6 +57,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;
|
||||
- editable G-code pane plus run-editor-text workflow;
|
||||
- canonical output rendering;
|
||||
- program-line rendering;
|
||||
- motion table;
|
||||
@@ -126,7 +127,7 @@ Current implemented regions:
|
||||
|
||||
### Phase 2: Program Execution Workflow
|
||||
|
||||
Status: active; custom text/file execution is implemented.
|
||||
Status: active; custom text/file execution and editor-text execution are implemented.
|
||||
|
||||
Upgrade the G-code pane and execution controls:
|
||||
|
||||
@@ -138,6 +139,8 @@ Upgrade the G-code pane and execution controls:
|
||||
- show run status, source program, motion count, and current frame.
|
||||
- load operator-provided G-code text through `runProgramText()`;
|
||||
- load browser `File` objects through `loadProgramFile()`;
|
||||
- edit visible G-code in the AXIS shell and run it through
|
||||
`runEditorProgramText()`;
|
||||
|
||||
Built-in test programs must live in:
|
||||
|
||||
@@ -231,6 +234,9 @@ Required methods:
|
||||
- `finishPlayback()`;
|
||||
- `runProgramText(programText, metadata)`;
|
||||
- `loadProgramFile(file)`;
|
||||
- `getProgramText()`;
|
||||
- `setProgramText(text, metadata)`;
|
||||
- `runEditorProgramText()`;
|
||||
- future: `loadProgramText(text, metadata)`;
|
||||
- future: `loadMachineSessionFromOpfs(options)`;
|
||||
- future: `getMachineReadiness()`;
|
||||
|
||||
Reference in New Issue
Block a user