拆分仿真测试程序目录
结论:将内置 G-code 测试程序从 simulation-app.js 移入 runtime/ui/simulation/programs/,建立一程序一模块的目录化程序库,并保持页面 API 与验证 gate 兼容。
This commit is contained in:
17
wasm-port/runtime/ui/simulation/programs/pocket-z.js
Normal file
17
wasm-port/runtime/ui/simulation/programs/pocket-z.js
Normal file
@@ -0,0 +1,17 @@
|
||||
export const pocketZProgram = {
|
||||
id: "pocket-z",
|
||||
label: "Pocket with Z moves",
|
||||
category: "Linear",
|
||||
text: [
|
||||
"G90 G17 G0 X0 Y0 Z1",
|
||||
"G1 Z-0.25 F40",
|
||||
"G1 X2 Y0 F120",
|
||||
"G1 X2 Y1",
|
||||
"G1 X0 Y1",
|
||||
"G1 X0 Y0",
|
||||
"G0 Z1",
|
||||
"M2",
|
||||
"",
|
||||
].join("\n"),
|
||||
expectedMotionTypes: ["STRAIGHT_TRAVERSE", "STRAIGHT_FEED"],
|
||||
};
|
||||
Reference in New Issue
Block a user