开源改变世界

仅 z 轴上的错误 #1483

推推 grbl 3年前 (2023-01-24) 159次浏览

关闭
jdargot 打开了这个问题 2018 年 12 月 23 日 · 5 条评论
 Closed

Errors on z-axis ONLY#1483

jdargot opened this issue on Dec 23, 2018 · 5 comments

注释

仅 z 轴上的错误 #1483

大家好,

当涉及到 CNC 固件时,我可能遇到了迄今为​​止最奇怪的错误。

我在 mega 和 ramps 1.4 上构建了一个运行 GRBL 固件的 shapeoko 仿制品。我正在使用的特定程序在过去一直使用经典的通用 Gcode 发送器。最近,我尝试在经典版和 2.0 Nightlybuild 上运行它,在两种情况下都得到相同的结果。

命令适用于 x 和 y 方向上的任何东西,但每当我一次将 z 轴移动超过 1 毫米或任何时候运行涉及 z 运动的 gcode 时,它​​都会给我带来很多错误。通常,结果是来自其他电机的轻微抖动(因为在程序中实际报告了这些方向的移动和野生坐标)和错误,例如“不支持的命令”和“处理响应时出错”。梯形图经常重复出现,直到我关闭程序。

我尝试过更换 z 轴驱动程序、更新电路板并在不同的计算机上运行。它仍然有同样的问题,我似乎无法在网上找到任何类似情况的例子。

如果有帮助,这是我当前的设置:

$0=30 (step pulse, usec)
$1=255 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=6 (dir port invert mask:00000110)
$4=0 (step enable invert, bool )
$5=0(限制引脚反转,布尔值)
$6=0(探针引脚反转,布尔值)
$10=3(状态报告掩码:00000011)
$11=0.050(结偏差,mm)
$12=0.002(弧度公差,mm)
$13 =0(报告英寸,布尔)
$14=1(自动启动,布尔)
$20=0(软限制,布尔)
$21=0(硬限制,布尔)
$22=0(归位周期,布尔)
$23=0(归位方向反转掩码:00000000)
$24=25.000(归位进给,毫米/分钟)
$25=500.000(归位搜索,毫米/分钟)
$26=250(归位去抖动,毫秒)
$27=1.000(归位牵引,mm)
$100=160.550(x,步长/mm)
$101=160.550(y,步长/mm)
$102=7524.000(z,步长/mm)
$110=1000.000(x 最大速率,mm /min)
$111=1000.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=25.000 (x accel, mm/sec^2)
$121=25.000 (y accel, mm/sec ^2)
$122=25.000(z 加速度,毫米/秒^2)
$130=290.000(x 最大行程,毫米)
$131=325.000(y 最大行程,毫米)
$132=200.000(z 最大行程,毫米)

这是错误的示例:

G21G91G0Z1F10
G90 G21
正常
正常
G21G91G0Z-1F10
G90 G21
正常
正常
G21G91G0Z2F10
G90 G21
正常
正常

Basically: up one mm: ok. Down one mm: ok. Up two mm: tries to kill itself… Literally, instead of moving the z-axis, it either stops or overruns its boundaries in the x and y directions. Sometimes it gives a legitimate error and sometimes I just get the response above. But usually, once that happens, no other commands will work until I disconnect.

Has anyone had a similar problem? Are the wild stepper commands to other motors indicative of any particular problems?

Any advice is appreciated.
Thanks.

仅 z 轴上的错误 #1483
Author

Here is the response I got after making some edits to the homing. I didn’t know GRBL used such fowl language… Haha.

仅 z 轴上的错误 #1483

仅 z 轴上的错误 #1483
Author

仅 z 轴上的错误 #1483

仅 z 轴上的错误 #1483
Member

Your z step per mm setting is extremely high. With your max rate, you are exceeding Grbls maximum 30kHz step rate limit.

仅 z 轴上的错误 #1483

你是救命恩人!这修复了它,只是保持步数/毫米较低。

这带来了另一个问题。您知道如何进行编辑以使距离校准仍然准确,同时仍满足每毫米标准的步数吗?或者我只需要一个更大的导螺杆?

太感谢了。

仅 z 轴上的错误 #1483

除非你能减少驱动器的任何微步进,否则你必须保持每毫米的步数,而不是降低 z 最大速率($112)

喜欢 (0)