[Grbl_Esp32 Issue#696] Macro0 and Macro1 don’t work with Feed_Hold.

未分类 bolang 5个月前 (10-14) 47次浏览

Issue #696 | 状态: 已关闭 | 作者: Spla-sh | 创建时间: 2020-12-06


Hello !
When I use Feed_Hold with Macro0 and Macro1, Grbl crash.
With WEBUI, I can see when I push the Feed_Hold button. But when I push the Macro0 or Macro1 button, WEBUI stop receving messages and I have “connection error” message.
After reseting the ESP32, I disconnect the Feed_Hold pin and I can see “Pn:H” on WEBUI.
After that I can push MC0 and MC1 without problems and see “PN:H,MC0,MC1”
I use 34-39 GPIO with pullup resistors.
Thanks !


评论 (6)

#1 – bdring 于 2020-12-06

This is hard to follow. Please list the sequence of events, on separate lines, that causes the problem.
– When you talk about a button make sure you say whether it is a button on the WebUI page, or a physical button.
– If it is a physical button, show the definition from your machine definition file
– If there is a macro, please give the complete text of the macro.
– Please give the machine state (Idle,Run,Hold,etc) when you push each button)
– For each physical button please show the status command (“?” character) response for each button in the pushed and unpushed state.
– What firmware branch and version date are you using.


#2 – Spla-sh 于 2020-12-06

Sorry, hope this help :

– It’s 4 physical buttons (switchs)

– Def file

#ifdef CONTROLSWDEBOUNCE_PERIOD
#undef CONTROLSWDEBOUNCE_PERIOD
#endif
#define CONTROLSWDEBOUNCE_PERIOD 100 // really long debounce

#ifdef INVERTCONTROLPIN_MASK
#undef INVERTCONTROLPIN_MASK
#endif
#define INVERTCONTROLPIN_MASK B11111111

#define CONTROLFEEDHOLDPIN GPIONUM_36
#define CONTROLCYCLESTARTPIN GPIONUM_39

#define MACROBUTTON0PIN GPIONUM_34
#define MACROBUTTON1PIN GPIONUM_35

– I don’t have created the cpp file for the macro yet.

– Machine state :
“Hold” when I push the hold button
“Idle” when I push the start button
“connection error” when I push the Macro 0 or Macro 1 button

– All the buttons don’t show nothing in unpushed state. When pushed, Hold = “Pn:H” ; Start = “Pn:S” but Macro 0 and Macro 1 don’t show nothing because Grbl don’t respond anymore.

– I use the latest release (24/11/2020) of the main branch.

When I disconnect the Hold pin (GPIO36), I see “Pn:H” and I when I push the macro0 and 1, I can see “Pn:HMC0MC1”

Thanks !


#3 – bdring 于 2020-12-06

What do you want Macro 0 and Macro 1 to do?


#4 – Spla-sh 于 2020-12-06

Grab a file from the sd card like your polarcoaster


#5 – bdring 于 2020-12-06

I would suggest trying the devt branch. It has the features described here.

Let me know if that works for you.


#6 – Spla-sh 于 2020-12-06

Yes it works ! When MC0 and MC1 buttons are pushed, I can see “Pn:01” while my “hold” gpio pin is connected.
Now I can make my cpp file for macros.
Thanks a lot !


原始Issue: https://github.com/bdring/Grbl_Esp32/issues/696

喜欢 (0)