拆分仿真测试程序目录
结论:将内置 G-code 测试程序从 simulation-app.js 移入 runtime/ui/simulation/programs/,建立一程序一模块的目录化程序库,并保持页面 API 与验证 gate 兼容。
This commit is contained in:
14
wasm-port/runtime/ui/simulation/programs/arc-g2-g3.js
Normal file
14
wasm-port/runtime/ui/simulation/programs/arc-g2-g3.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export const arcG2G3Program = {
|
||||
id: "arc-g2-g3",
|
||||
label: "G2/G3 arc path",
|
||||
category: "Arc",
|
||||
text: [
|
||||
"G90 G17 G0 X0 Y0 Z0",
|
||||
"G91.1",
|
||||
"G2 X1 Y1 I1 J0 F80",
|
||||
"G3 X0 Y0 I0 J-1",
|
||||
"M2",
|
||||
"",
|
||||
].join("\n"),
|
||||
expectedMotionTypes: ["STRAIGHT_TRAVERSE", "ARC_FEED"],
|
||||
};
|
||||
Reference in New Issue
Block a user