结论:将内置 G-code 测试程序从 simulation-app.js 移入 runtime/ui/simulation/programs/,建立一程序一模块的目录化程序库,并保持页面 API 与验证 gate 兼容。
18 lines
344 B
JavaScript
18 lines
344 B
JavaScript
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"],
|
|
};
|