开源改变世界!!

bCNC制作怪圈 #638

推推 grbl 2年前 (2023-02-01) 157次浏览
关闭
abhinndas 打开了这个问题 2017 年 8 月 16 日 · 6条评论
关闭

bCNC制作怪圈#638

abhinndas 打开了这个问题 2017 年 8 月 16 日 · 6条评论

注释

bCNC制作怪圈 #638


,我使用 bCNC 有一段时间了,但今天它在可视化工具中出现了很多奇怪的圆圈。我正在使用 Fusion 360 生成 g 代码。
bCNC制作怪圈 #638

bCNC制作怪圈 #638
所有者

g2/g3 处理中应该有一些数值精度误差。你能把gcode文件发给我吗?

bCNC制作怪圈 #638
作者

: (PGM, NAME=”0125″)
; T1 D=6 CR=0 – ZMIN=-27.5 – 平立铣刀
:G90 G40 G94
G17
G71
M26
;二维轮廓5
M9
M26
:T1 M6
M26
S32000 M3
H0
M9
G0 X-30.511 Y201.6
Z15
Z5.5
G1 Z-3.9 F1524
G18 G3 X-31.111 Z-4.5 I-31.111 K-3.9
G1 X-31.712
G17 G3 X- 32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018 G6
X-3535. 535.312 J26
G1 X-985.643 Y73.018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 J376
G1 X-984.812
G2 X-981.812 Y376 I-984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X- 88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.111
G18 G2 X-30.511 Z-3.9 I-31.111 K-3.9
G0 Z5
Y201.6
G1 Z1 F1524
Z-8.4
G3 X-31.111 Z-9 I-31.111 K-8.4
G1 X-31.712
G17 G3 X-32.312 Y201 I- 31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018 G2
X-535.643 I-526.312
-985.643 Y73.018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 X
-1035.31 X-2986
981.812 Y376 I-984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X-88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.G1218
– G1 Z-8.4 I-31.111 K-8.4
G0 Z5
Y201.6
G1 Z-3.5 F1524
Z-12.9
G3 X-31.111 Z-13.5 I-31.111 K-12.9
G1 X-31.712
G17 G3 X-32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018
G2 X-535.643 I-535.312 J26
G1 X-985.643 Y76 018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 J376
G1 X-
926.31 Y126 I-1035.31 984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X-88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.G1218
– G1 Z-12.9 I-31.111 K-12.9
G0 Z5
Y201.6
G1 Z-8 F1524
Z-17.4
G3 X-31.111 Z-18 I-31.111 K-17.4
G1 X-31.712
G17 G3 X-32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018
G2 X-535.643 I-535.312 J26
G1 X3 Y-985.64 .018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 J376
G1 X-984.812
G2 X-981.812 Y376 I-984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X -543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X-88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.111
G18 G2 X-30.511 Z-17.4 I-31.111 K-17.4
G0 Z5
Y201.6
G1 Z-12.5 F1524
Z-21.9
G3 X-31.111 Z-22.5 I-31.111 K-21.9
G1 X-31.712
G17 G3 X-32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018
G2 X-535.643 I-526.3
G1 X-985.643 Y73.018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-13276.31 J –
1038.31
X-981.812 Y376 I-984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X-88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.G1218
– G1 Z-21.9 I-31.111 K-21.9
G0 Z5
Y201.6
G1 Z-17 F1524
Z-24.4
G3 X-31.111 Z-25 I-31.111 K-24.4
G1 X-31.712
G17 G3 X-32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018
G2 X-535.643 I-535.312 J26
G1 X-985.643 Y76 018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 J376
G1 X-
926.31 Y126 I-1035.31 984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X-88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.G1218
– G1 Z-24.4 I-31.111 K-24.4
G0 Z5
Y201.6
G1 Z-19.5 F1524
Z-26.9
G3 X-31.111 Z-27.5 I-31.111 K-26.9
G1 X-31.712
G17 G3 X-32.312 Y201 I-31.712 J201
G1 Y126
G2 X-33.19 Y123.879 I-35.312 J126
G1 X-83.19 Y73.879
G2 X-84.98 Y73.018 I-85.312 J76
G1 X-534.981 Y23.018
G2 X-535.643 I-535.312 J26
G1 X3 Y-985.64 .018
G2 X-987.433 Y73.879 I-985.312 J76
G1 X-1037.431 Y123.879
G2 X-1038.31 Y126 I-1035.31 J126
G1 Y376
G2 X-1035.31 Y379 I-1035.31 J376
G1 X-984.812
G2 X-981.812 Y376 I-984.812 J376
G1 Y254
X-970.812
Y376
G2 X-967.812 Y379 I-967.812 J376
G1 X-543.812
G2 X-540.812 Y376 I-543.812 J376
G1 Y254
X-529.812
Y376
G2 X-526.812 Y379 I-526.812 J376
G1 X-102.812
G2 X-99.812 Y376 I-102.812 J376
G1 Y254
X- 88.812
Y376
G2 X-85.812 Y379 I-85.812 J376
G1 X-35.312
G2 X-32.312 Y376 I-35.312 J376
G1 Y201
G3 X-31.712 Y200.4 I-31.712 J201
G1 X-31.111
G18 G2 X-30.511 Z-26.9 I-31.111 K-26.9
G0 Z15
G17
M9
M26
G0 X0 Y0
M30
M2

bCNC制作怪圈 #638
作者

我该如何纠正这个错误?

bCNC制作怪圈 #638
所有者

似乎是 gcode 有问题,而不是查看器。
为了测试,我将它减少到第一条 G17 G3 线,我得到以下图 G17 G3 要求在 XY 平面上从 X-31.712 Y201.6 Z-4.5 开始到 X-32.312 Y201 I-31.712的 CCW 圆J201 因此中心应该在左上角的 X-31.712-31.712 和 Y201.6+201 wrt 到起始位置,因此它需要逆时针旋转一个几乎 358 度的圆。 如果 I31.712 J-201 为负数,则错误出现在 I,J 上,然后它会正确显示为圆心,圆心位于起点右下角。
bCNC制作怪圈 #638

我也在其他在线查看器https://ncviewer.com/上测试过它 ,我得到的情节与 bCNC 中的情节完全相同。

bCNC制作怪圈 #638
作者

我又试了一次,现在我得到了预期的结果。在编译代码时,我可能错过了其中一个步骤。非常感谢您的及时回复,您救了我的命!

bCNC制作怪圈 #638
所有者

这似乎是 cam 程序中的一个错误,很高兴重现并向他们报告。