Calibration Macros?

Hi

I think I recall someone writing a calibration macro, but I’m not sure if it was for calibrating Y, testing squareness, or Z levelling. (all three would be handy).

I’ve searched for 20 minutes and can’t find them. Does anyone remember seeing/writing them, or am I imagining them? (Sometimes I do dream a little, LR4!)

Thanks

Mike

I posted and then thought I saw the answer in the list of threads on FluidNC. However the github repo it references has gone and its not on waybackmachine….

Does anyone have a copy of the files?

Or alternative macros? thanks in advance..

I wrote a Z leveling script but I’m not sure what the best version is right now. You’d have to peruse this thread. I have intentions of updating a Z leveling WebUI 3 extension but who knows when I’ll get to that.

1 Like

Hi Jason,

excellent. that was the one I remember seeing. I dont really know gcode other than G0 but I might give it a spin and see if will work for me

many thanks

Mike

1 Like

I’ve not got your very cool macro/extension to work yet.

I am using V3 of the GUI on a PC. I have tried running it as a file and also as a macro.

The code runs, it homes x,y and z. Then it stops with the following message in the STATUS panel,

“INFO: PRINT, Move to initial Y position 55”

So I guess it’s not running the following line

G00 Y# F#

I have also installed your Hold Monitor extension, which is working but not displaying anything except for first HOME message…

Am I doing something daft? do you know what the problem might be?

You’ll have to open that code in something like notepad ++ or vscode. The first few lines are instructions for things you need to change for your specific machine.

Yes I made edits to the code (parameters at top only) before I ran it. I didn’t change anything at the point where it hangs….. unless there was a typo on a parameter. I’m heading into workshop soon I will check then

Ive got to the workshop, everything is rebooted and still same problem.

Also there were no problems with my edits, I double checked them and compared them to the last posted version of the code posted by Ryan in Notepad++ using a compare plugin.

Could this be a problem with v3 of the GUI/FluidNC parsing things differently?

Post your gcode and I’ll take a look.

I will also note that Z leveling is the easiest part of calibration so I wouldn’t waste too much time on this.

zlevel.gcode (4.0 KB)

many thanks.

I dont know why but I found it very fiddly when I did it before. This will be a bonus if I can get it to work.

Ive had various versions with different file type suffixes, .txt .g .gco .gcode but it didnt make much difference, I am clutching at straws.

My version is very similar but I have some updates to use G1 instead of G0 in a bunch of places because G0 ignores feedrate and uses max feedrate. Let me go test it since it’s been awhile since I’ve used it.

1 Like

Hmm, I get the same behavior as you. This definitely worked before. I’m wondering if it’s a firmware issue? What version of FluidNC do you have? I currently have 3.9.7 which I think has some known issues. Going to try different versions.

Well, I get the same behavior on 3.9.9 (released this morning) and 3.9.5. I see that if I remove a couple messages, it gets further.

It’s very odd. I turned on debug and it outputs the one message and the job ends.

[MSG:DBG: Homing done]
<Idle|MPos:0.000,0.000,0.000|FS:0,0|SD:25.33,/sd/_zlevel.gcode>
[MSG:INFO: PRINT, Move to Initial Y Position 50]
[MSG:DBG: /_zlevel.gcode job sent]
<Idle|MPos:0.000,0.000,0.000|FS:0,0|WCO:0.000,0.000,0.000>
[G92:0.000,0.000,68.730]

I see that if I remove both “Move to Initial” print messages, it continues further but that’s as much as I had time to poke it.

I think I was running 3.9.4 a long time, so I might see if that behaves any differently.

I just used this last week without issue. I am out of town today, but I can post my code when I get home tomorrow. I am using the latest fluidnc as of 2 weeks ago with webui-3

ahh thats a relief, the number one suspect is always …. me

i am on v3.9.5

thanks…