[Grbl_Esp32 Issue#627] Homing Issues

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

Issue #627 | 状态: 已关闭 | 作者: Mboss32 | 创建时间: 2020-10-06

标签: bug


Hi All,

I am running into errors while trying to home using CNCjs. The main HOME button that issues a ‘$H’ command triggers an “error:18”. The single axis homing buttons (G28.2) commands trigger an “error:20 (unsupported command)”. Similarly the $H in WebUI will cause an “error:18” but the single axis variants like $HX will perform properly.

I see the Homing cycle settings have been pulled out of the Config.h file, but I can seem to find them in settings.h or settings.cpp, any suggestions?

What version of the firmware are you using? Using the latest commit from Oct 6, 2020

Is the problem repeatable? Yes


评论 (15)

#1 – bDuthieDev 于 2020-10-06

Ran into this same issue myself. Here was my fix:
$Homing/Cycle5=
$Homing/Cycle4=
$Homing/Cycle3=
$Homing/Cycle2=Y
$Homing/Cycle1=X
$Homing/Cycle0=Z


#2 – Mboss32 于 2020-10-06

Thanks @bDuthieDev! What file did you add the to?


#3 – bDuthieDev 于 2020-10-06

Just enter from a console. Use $S to see all your current settings.


#4 – bdring 于 2020-10-06

We are slowly moving as much as we can to run time settings to reduce the need to compile. We support all the traditional $$ menu numeric settings and a newer text base settings style. You can see all the new settings by sending $S.

It is a lot of settings, but if you can filter it. Send $cycle to see any setting with the word cycle in it. Just be careful to avoid existing commands like $X.

Also, to find descriptions of error codes, send $E to see all of them or $E=18 to see a specific number.


#5 – bdring 于 2020-10-06

You can home multiple axes at once. A traditional homing might be.

$Homing/Cycle0=Z
$Homing/Cycle1=XY

More on settings is here…

https://github.com/bdring/Grbl_Esp32/wiki/Settings


#6 – Mboss32 于 2020-10-06

Thanks! Is there a way to add these to defaults.h the settings so they reload after RST commands?


#7 – bdring 于 2020-10-06

Yes,

They are bit masks. The most readable way to do it is like this.

#define DEFAULTHOMINGCYCLE0 bit(ZAXIS)
#define DEFAULTHOMINGCYCLE0 (bit(XAXIS) | bit(Y_AXIS))


#8 – Mboss32 于 2020-10-06

Thanks for the suggestion Bart!

Unfortunately, I have tried the above in my machine file, and in defaults.h and it does not work. The defaults do not load after compiling/upload or RST commands.

I also tried this method from the 6packstepstickXYZv1.h example (pleased in machine file).

#ifdef HOMINGCYCLE0
#undef HOMINGCYCLE0
#endif
#define HOMINGCYCLE0 bit(Z_AXIS) // Z first

#ifdef HOMINGCYCLE1
#undef HOMINGCYCLE1
#endif
#define HOMINGCYCLE1 (bit(XAXIS)|bit(YAXIS))

None of these methods appear to work, the settings are still blank after each test.


#9 – bdring 于 2020-10-06

Could you paste your complete machine definition file here. I will give a test on a controller.


#10 – Mboss32 于 2020-10-06

Sure thing – it is the SPI_daisychain with just a few mods. Thanks!

#define MACHINENAME "SPIDAISY4Xxyyz"

#ifdef N_AXIS
#undef N_AXIS
#endif
#define N_AXIS 3 // can be 3 or 4. (if 3 install bypass jumper next to the A driver)

#define TRINAMICDAISYCHAIN

#define TRINAMICRUNMODE TrinamicMode :: CoolStep
#define TRINAMICHOMINGMODE TrinamicMode :: CoolStep

#ifdef HOMINGCYCLE0
#undef HOMINGCYCLE0
#endif
#define HOMINGCYCLE0 bit(Z_AXIS) // Z first

#ifdef HOMINGCYCLE1
#undef HOMINGCYCLE1
#endif
#define HOMINGCYCLE1 (bit(XAXIS)|bit(YAXIS))

// Use SPI enable instead of the enable pin
// The hardware enable pin is tied to ground
#define USETRINAMICENABLE

#define DEFAULTHOMINGSQUARED_AXES 0

// Y motor connects to the 1st driver
#define XTRINAMICDRIVER 2130 // Which Driver Type?
#define XRSENSE TMC2130RSENSE_DEFAULT
#define XSTEPPIN GPIONUM12
#define XDIRECTIONPIN GPIONUM14
#define XCSPIN GPIONUM17 // Daisy Chain, all share same CS pin

// Y motor connects to the 2nd driver
#define YTRINAMICDRIVER 2130 // Which Driver Type?
#define YRSENSE TMC2130RSENSE_DEFAULT
#define YSTEPPIN GPIONUM27
#define YDIRECTIONPIN GPIONUM26
#define YCSPIN XCSPIN // Daisy Chain, all share same CS pin

// Y2 motor connects to the 2nd driver
#define Y2TRINAMICDRIVER 2130 // Which Driver Type?
#define Y2RSENSE TMC2130RSENSE_DEFAULT
#define Y2STEPPIN GPIONUM15 // Z on schem
#define Y2DIRECTIONPIN GPIONUM2 // Z on schem
#define Y2CSPIN XCSPIN // Daisy Chain, all share same CS pin

// Z Axis motor connects to the 4th driver
#define ZTRINAMICDRIVER 2130 // Which Driver Type?
#define ZRSENSE TMC2130RSENSE_DEFAULT
#define ZSTEPPIN GPIONUM33 // A on schem
#define ZDIRECTIONPIN GPIONUM32 // A on schem
#define ZCSPIN XCSPIN // Daisy Chain, all share same CS pin

// Mist is a 3.3V output
// Turn on with M7 and off with M9
#define COOLANTMISTPIN GPIONUM21

#define SPINDLE_TYPE SpindleType::PWM
#define SPINDLEOUTPUTPIN GPIONUM25
#define SPINDLEENABLEPIN GPIONUM4

// Relay operation
// Install Jumper near relay
// For spindle Use max RPM of 1
// For PWM remove jumper and set MAX RPM to something higher ($30 setting)
// Interlock jumper along top edge needs to be installed for both versions
#define DEFAULTSPINDLERPM_MAX 12000 // Should be 1 for relay operation

#define PROBEPIN GPIONUM_22

#define XLIMITPIN GPIONUM36
#define YLIMITPIN GPIONUM39
#define ZLIMITPIN GPIONUM34


#11 – bdring 于 2020-10-06

Not at my computer right now, but change this


#ifdef HOMINGCYCLE0
#undef HOMINGCYCLE0
#endif
#define HOMINGCYCLE0 bit(Z_AXIS) // Z first

#ifdef HOMINGCYCLE1
#undef HOMINGCYCLE1
#endif
#define HOMINGCYCLE1 (bit(XAXIS)|bit(YAXIS))
`

to this

`
#define DEFAULTHOMINGCYCLE0 bit(ZAXIS)
#define DEFAULTHOMINGCYCLE1 (bit(XAXIS) | bit(Y_AXIS))


#12 – Mboss32 于 2020-10-06

No joy using the suggested edits

#define DEFAULTHOMINGCYCLE0 bit(ZAXIS)
#define DEFAULTHOMINGCYCLE1 (bit(XAXIS) | bit(Y_AXIS))

Its like the $Homing/Cycle setting variables aren’t being assigned from the #defines, I have been looking for this in the code but haven’t found the right section yet.


#13 – bdring 于 2020-10-06

I am sorry, that feature is brand new this week and still in the devt branch. I am hoping to merge that with the main branch soon, but you could use it now to fix your problem.


#14 – bdring 于 2020-10-07

Merged with main….closing


#15 – Mboss32 于 2020-10-07

Thanks all for the help! I will test the new main out in the morning


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

喜欢 (0)