结论:将内置 G-code 测试程序从 simulation-app.js 移入 runtime/ui/simulation/programs/,建立一程序一模块的目录化程序库,并保持页面 API 与验证 gate 兼容。
16 lines
339 B
JavaScript
16 lines
339 B
JavaScript
export const incrementalLoopProgram = {
|
|
id: "incremental-loop",
|
|
label: "Incremental loop",
|
|
category: "Modal",
|
|
text: [
|
|
"G90 G17 G0 X0 Y0 Z0",
|
|
"G91 G1 X0.5 Y0 F60",
|
|
"G1 X0 Y0.5",
|
|
"G1 X-0.5 Y0",
|
|
"G90 G0 X0 Y0 Z0",
|
|
"M2",
|
|
"",
|
|
].join("\n"),
|
|
expectedMotionTypes: ["STRAIGHT_TRAVERSE", "STRAIGHT_FEED"],
|
|
};
|