Baby Stepping.. can it, or can it not be permanent?
-
@PuterPro I could chill out, sure. I don't usually make actual requests, I just make observations, discussion, and perhaps suggestions. If I make a direct request, it's usually followed by a sum of money, because otherwise I'm personally not owed anything.
And usually if I'm requesting something, it's something that has zero possible way of achieving currently, and may benefit other people. This request, beaten to death, is already achievable with the current behaviour.
You change your print surface, and find that babystepping of +0.08 mm is good? Add that single line to the end of your config.g file. Done. How is this so difficult? Why must it be its own dedicated gcode? If you want an easier way than editing config.g, add a line at the end of your config.g that runs a macro with M98. Every time you want to permanently change the baby stepping, perform this series of commands:
M28 mybabysteppingmacro.g ; do your babystepping M29
Done. It will save your magic sequence of babystepping settings to load every time you boot.
-
I don't know if it been mentioned above but what I find really annoying with the Baby Stepping feature is when I have printers on the bench for repair for testing. Just quickly fixing something and now your Z is out, use baby stepping to temporally correct it, then run a test print. Come back to run another one and completely losing track of the Baby Stepping. Also, when you've got 10 different things on the go around the print farm like I usually do, you tend to forget if you reapplied the baby-stepping after running a print, you look at the value listed within that setting and the values are piling up if you've run a few prints so you really have no way of knowing unless you're better at keeping track than I've been and I'm horrible at multitasking lol
-
Clearly, the schism between the two schools of thoughts is too deep and we have only one option moving forward. That is, forking the RepRap firmware into two code lines: RRF Persisted BS, and RRF Volatile BS.
I don't see any other viable option.
-
@zapta Hahaha. I concur.
In all seriousness, the issue LeckieTech mentions is because dc42 changed the behaviour for people who complained that the babystepping was reset on homing.
Now, the babystepping value is retained through homing, but the babystepping amount is also added to the M208 homing location for the Z axis. So, the offset indeed does add up if you don't manually cancel the babystepping offset before homing.
So, the current behaviour is problematic, but the way to fix it is to revert it to the previous behaviour, where it is completely reset after homing, and all set offsets and M208 values are respected exactly as they are in the configuration.
-
Based on further reading of this thread I have revised my code to suit all sides of the argument
;save_babystep.g if move.axes[2].babystep !=0 while(true) M291 P"Save baby stepping?" S2 echo "Shouldn't you edit config G instead?" echo "no, I want the firmware re-written" echo "but why?, just use a macro" echo "because I want it!" echo "fine... go ahead"
-
@OwenD omg I totally missed that before! Great! hahah. I guess mine is the RRF2 version.
-
@PuterPro said in Baby Stepping.. can it, or can it not be permanent?:
@deckingman said in Baby Stepping.. can it, or can it not be permanent?:
You listed several things you'd like implemented, does that mean the OP doesn't have the right to request his? Someone elses' needs and wants should be honored too, eh? It's OK for people to request a feature change that you don't use or need.
Woah, hold on my friend. There is a world of difference between adding something that makes life slightly easier than editing one line of gcode, and restoring basic printer functionality to the firmware, which are the things that I'd like to see implemented.
The current state of firmware is that nobody who has a heater connected to expansion board can PID tune that heater. That's what I call basic functionality. Nobody who uses a mixing hot end with Duet 3 can utilise it fully because the step pulse frequency has been reduced, which limits the extruder micro-stepping. Again, that's not a case of making something a little more convenient, it's basic functionality which used to exist but now does not.
I changed over to Duet 3 last August to help the Duet guys by having my machine in their stand at the TCT show and I spent hundreds of hours testing pre-beta firmware for them. But I haven't been able to PID a hot end heater connected to an expansion board since then. It will be 3.02 at some time in the future before I ever will be able to do it. But I'm not whining about it. It's the price one has to pay (although if I'd known the full price, it's fair to say that I would not have made the conversion but it's too late now to go back to Duet 2).
I'm working on new hot end and I've had to tune heaters dozens of times. To do so, I have to disconnect the heater and thermistor from the expansion board, connect it to the main board, edit my configuration, run the heater tune, put my configuration back to what it was, disconnect the heater and thermistor from the main board and re-connect them to the expansion. And people think that editing one line of gcode is inconvenient!
The point I tried to make is that the more time the developers spend making life a little more convenient than editing one line of gcode, is time that could be spent restoring existing features that used to work but now don't. But I guess this will all fall on deaf ears and it'll be another year before I can get my printer working as it used to with Duet 2 because the developers are busy implementing "feature" to make life a little easier than editing one line of gcode now and then.
-
@deckingman said in Baby Stepping.. can it, or can it not be permanent?:
Let's go the whole hog. Why stop with having a button to make baby stepping permanent instead of editing one value in config.g? Let's have another button that will set the steps per mm for extruders after we've calibrated them - one button for each extruder ideally. Then another button when we tune firmware retraction to save us editing config.g for that. The same for pressure advance and all the other things we have to tune.
Most things you mention are set and forget type of settings. Nozzle offset is not, it needs to be tuned from roll to roll, or evan after many other changes.
With enough buttons, we need never open config.g at all.
That's basically the idea of having a GUI, isn't it?
Look people, it is just not worth any more fuzz. It is certainly no dealbreaker for me. I did not invent the subject. I just think it is a plausible feature that got fired down with not enough valid arguments.
-
I find myself wondering why does the thread go on - I thought Owen put a fork in it with his macro?
I completely support the notion that "trivial" conveniences are best left to the community when the developer resources are limited, and such it has been solved? Or if its too much to ask to use the macro I guess daemon.g can check for baby stepping and persist it as needed?
-
@bearer said in Baby Stepping.. can it, or can it not be permanent?:
I find myself wondering why does the thread go on - I thought Owen put a fork in it with his macro?
Exactly. That's why I haven't posted to this thread until now.
-
We do need to put a fork in this whole thing, a few comments for clarity -
@deckingman said in Baby Stepping.. can it, or can it not be permanent?:
Woah, hold on my friend. There is a world of difference between adding something that makes life slightly easier than editing one line of gcode, and restoring basic printer functionality to the firmware, which are the things that I'd like to see implemented.
I could not agree more! I absolutely agree that the things you're pushing for should have priority over such a silly thing as Baby steps being optionally persistent. I was just commenting on it being dismissed out of hand by someone who doesn't use it, and offering a case scenario where I could see it's validity ... if you get my drift. (And I AM drifty ... LOL!)
@bot said in Baby Stepping.. can it, or can it not be permanent?:
This request, beaten to death, is already achievable with the current behaviour .... add a line at the end of your config.g that runs a macro with M98 .... Done. It will save your magic sequence of babystepping settings to load every time you boot.
Thank you for getting I wasn't berating you, it's sometimes hard with just text and an emoji or two ...
THAT's a simple way to accomplish this, thanks for that, now we have a couple solutions. Personally I rarely use Baby Steps but I have found it handy at times.@OwenD Hilarious!! Love it. And thanks for the solutions, I confess to a misread of your earlier posts ALSO being in humor. Working on my halo ...
@DeltaCon said in Baby Stepping.. can it, or can it not be permanent?:
It is certainly no dealbreaker for me. I did not invent the subject.
@ ALL - This sums up my involvement as well. I apologize for extending this so long when obviously there are multiple ways to solve this without changing the firmware. Many thanks to all that participated!!
-
@PuterPro My dude, tone is difficult even in real life. Sorry if I come across as belligerent sometimes. I'm only intending on being a tiny bit belligerent.
-
@bot said in Baby Stepping.. can it, or can it not be permanent?:
@PuterPro My dude, tone is difficult even in real life. Sorry if I come across as belligerent sometimes. I'm only intending on being a tiny bit belligerent.
Especially for Engineer / Tech types who tend towards awkwardness in all social situations! LOL
Peace out!
-
@PuterPro said in Baby Stepping.. can it, or can it not be permanent?:
@bot said in Baby Stepping.. can it, or can it not be permanent?:
@PuterPro My dude, tone is difficult even in real life. Sorry if I come across as belligerent sometimes. I'm only intending on being a tiny bit belligerent.
Especially for Engineer / Tech types who tend towards awkwardness in all social situations! LOL
Peace out!
As a mechanical engineer, no social awkwardness, I just get accused of being a cu** because I very bluntly tell the truth.....
-
This script is very useful!
It is possible to improve it, so the baby step can be reset?To tune the babystep, I usually reset it to zero, home z, and insert a piece of paper under hotend. Be able to reset babystep to zero is important to me.
-
M290 R0 S0 ; clear babystepping
-
Cross post wrong me
-
M290 R0 S0 does not work with your save script, because the script changed G31.
-
@yufanyufan said in Baby Stepping.. can it, or can it not be permanent?:
M290 R0 S0 does not work with your save script, because the script changed G31.
Define "does not work"
M290 R0 S0 will set baby steps to zero.
This will stop it being added again if the macro is run again before a restart, but won't restore your original G31 value.
If you want your old values back, don't run the macro.
I can't see a reason for running it twice in any print session either. If you have that much variation then I'd suggest fixing it rather than embarking on endless adjustments to offsets.
If your usage requirements are different to what the code does, then change the macro to suit yourself. -
@OwenD said in Baby Stepping.. can it, or can it not be permanent?:
@yufanyufan said in Baby Stepping.. can it, or can it not be permanent?:
M290 R0 S0 does not work with your save script, because the script changed G31.
Define "does not work"
Not the original poster but I can confirm that weird shit happens
LOL ... how is that for a definition?M290 R0 S0 will set baby steps to zero.
Yes
This will stop it being added again if the macro is run again before a restart, but won't restore your original G31 value.
If you want your old values back, don't run the macro.
I can't see a reason for running it twice in any print session either.This can (and did) happen to me because my printer stays on 24/7 and sometimes you forget that the script was run or you hit it twice by accident or a myriad of other things that can go wrong.
The updated macro I am now using is
; 0:/macros/Save-Z ; This macro adds the current babystep offset to the Z trigger height and saves it to config-overide.g ; ! M501 needs to be in config.g to automatically be recalled on reset. If using multiple filament settings, ; and this is for a specific filament type, recommend placing this yielded information in the filament's config.g. if move.axes[2].babystep !=0 ; If no babysteps are currently adjusted - exit routine echo {"OLD: " ^ sensors.probes[0].triggerHeight ^ " NEW: " ^ sensors.probes[0].triggerHeight + (move.axes[2].babystep * -1)} G31 Z{sensors.probes[0].triggerHeight - move.axes[2].babystep} echo {"Place either M501 -or- G31 Z" ^ sensors.probes[0].triggerHeight^ " in your config.g"} M500 P10:31 ; save settings to config-overide.g - G31 P31 saves trigger height, ; trigger value, and X and Y offsets for each possible Z probe type ; P10 parameter saves the G10 tool offsets. M290 R0 S0 ; clear babystepping else echo "Baby stepping is not currently employed, exiting."
Which has the babystep clearing at the end and also fixed an error in line 9
Note that have NOT fixed the 'weird shit' yet because I haven't quite wrapped my mind around it yet. It likely happens because of the change in G31 and the z position that the Duet printer thinks it is at (or something in that neighborhood). I believe that a reboot of the Duet after saving the new Z offset will get everything in sync and prevent the 'weird shit' (no guarantees though)