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