Contact me: hankecnc@gmail.com

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126

推推 grbl 3年前 (2023-01-29) 278次浏览
关闭
vogtitec 打开了这个问题 2019 年 4 月 20 日 · 8条评论
 Closed

Any attempt to move axis after Z-Probing leads to a crash#126

vogtitec opened this issue on Apr 20, 2019 · 8 comments

注释

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126

程序:通过 G38.2 Z-10 F10 进行 Z 轴探测。工作良好。如果您随后尝试移动任何轴(例如,通过点动),ESP 会在 stepper.cpp 中崩溃并显示以下数据:

Guru Meditation Error:Core 1 恐慌(LoadProhibited)。异常未处理。
Core 1 register dump:
PC : 0x40081124 PS : 0x00060031 A0 : 0x40081d7c A1 : 0x3ffbe900
A2 : 0x00000000 A3 : 0x3ff5f000 A4 : 0x3ffc1c78 A5 : 0x00000000
A6 : 0x0477e351 A7 : 0x3ffc1bb4 A8 : 0x80081120 A9 : 0x3ffbe8e0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x800db6e5 A13:0x3ffb1db0
A14:0x00000002 A15:0x000000fd SAR:0x00000005 EXCCAUSE:0x0000001c
EXCVADDR:0x00000011 LBEG:0x400014fd LEND:0x40001xUN:0x40001xUN 在 LCO
上下文中运行
EPC1:0x40081124 EPC2:0x00000000 EPC3:0x00000000 EPC4:0x40082edd

ELF 文件 SHA256:00000000000000000000000000000000000000000000000000000000000000000

回溯:0x40081124:0x3ffbe900 0x40081d79:0x3ffbe930 0x400dba95:0x3ffb1df0 0x400d276f:0x3ffb1f90 0x400f4c09:0x3ffb1fb0 0x4008f451:0x3ffb1fd0

正在重启…

异常解码器告诉:

PC: 0x40081124: onStepperDriverTimer(void*) at C:\Users\cvogt\AppData\Local\Temp\arduino_build_125167\sketch\stepper.cpp line 265
EXCVADDR: 0x00000011

解码堆栈结果
0x40081124: onStepperDriverTimer(void*) at C:\Users\cvogt\AppData\Local\Temp\arduino_build_125167\sketch\stepper.cpp line 265
0x400dba95: protocol_exec_rt_system() at C:\Users\cvogt\AppData\Local\ Temp\arduino_build_125167\sketch\protocol.cpp line 428
0x400d276f: loop() at Y:\Arduino\ESP32_GRBL_WebUI_neu_180419\Grbl_Esp32-master\Grbl_Esp32/Grbl_Esp32.ino line 141
0x400f4c09: loopTaskDate\void\ Downloads\arduino-1.8.5\hardware\espressif\esp32\cores\esp32\main.cpp 第 25 行
0x4008f451:vPortTaskWrapper 位于 /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port。 143号线

任何想法如何解决这个将不胜感激!
克里斯

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
所有者

I am able to recreate that problem. Here is what I see. Some jog types work and some do not. Normal moves appear to work and then all jogs work after that.

Here is a typical probe sequence that works

G38.2 Z-40 F100 ; probe down 40 at speed 100

[PRB:-299.000,-1.000,-8.095:1] ; grbl response of successful probe

G10 L2 P0 Z-28.095 ; set Z offset in current coordinate system to the returned Z value – touch plate thickness (20)

Either of these commands below work and all subsequent jogs are OK

G0 Z20 ; move to the probe thickness
$J=G53 G21 Z-1 F200 ;jog to Z-1mm in machine coordinates at speed 200

This problem might take a while to track down, but I think it might be due to the machine left in a problematic mode. doing a normal move cleans things up.

If you want to discuss short term fixes via Slack, let me know and I’ll send an invite.

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Owner

@vogtitec BTW: What sender are you using?

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Author

@bdring Thanks for the first solution attempts. I first encountered the behaviour with candle 1.1.7, but I was able to reproduce it by entering the probing command manually in the WebUI and then jogging via Web.
Yes, Slack will be welcome, thanks!

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Author

Ok, so there is a simple workaround for the problem! I changed the standard probe command in candle by adding a simple G91G0Z10, and now it works! Thanks a lot!

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Owner

Great.

I added Candle to this wiki page.

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126

I’m not near my machine so can’t check myself but is it possible to use a G91G1X0 command, which would not actually move anything, to “reset” things after the probing?

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Owner

That does not work. It appears you need to have some movement

Z-Probing 之后任何移动轴的尝试都会导致崩溃 #126
Owner

I think I found the problem. Thanks to the ESP Exception Decoder, I found the offending line of code.

The stepper interrupt was crashing while trying to compensate the spindle speed vs feed rate. This is a feature used by lasers and does not apply during jogging. I just placed a test for joging around the code.

I’ll release it soon to the devt branch. Then merge to master soon.