GCode Variables and Loops

Thanks, not demanding, just asking. I only found it because I was looking at the build docs to remind myself the process for a levelling.

When I run it (from the FluidTouch incidentally) on the left side it homes after each probe but on the right it only raises about halfway - my guess is that’s where the 45mm offset difference is coming from.

I’m not certain but I think it might be ignoring the homing feed rate - on the raises it was hitting the end stops so hard it moved them. I turned the feed rate down to 300 and it didn’t appear any slower.

Which version are you using? I’ll have to check which version I have on my lowrider.

I know at one point I realized the G0 moves needed to be changed to G1 because G0 ignores the feedrate.

Eeeeh, probably the first one.

Tried this one. GCode Variables and Loops - #73 by vicious1

It homes all axes and finishes. :man_shrugging:
My FluidNC version is 3.9.5

I have the same thing happen with the same version of FluidNC.

It needs to warm up before I’ll get a chance to figure this out.

1 Like

I can appreciate that. Virginia has been cold as…

1 Like

It was relatively warm today so I took a look at this. It seems this was broken starting in FluidNC v3.9.5 and fixed very recently in a v4.0.2 pre-release.

The issue is that when it hits this line, which is a comment, it is interpreting the “%” as end of file. That %d is supposed to format the variable that follows as a number with no decimal places.
(PRINT, Move to Initial Y Position %d#<probeYPos>)

Maybe there are more issues than that but that is certainly a big one.

I’m not quite sure how to proceed with this. Maybe I’ll try v4.0 again once v4.0.2 is released. I’ve been waiting for it to stabilize a bit. I could also do a v3.9.9 build with that fixed.

1 Like

Don’t discount the option of ‘oh well, it doesn’t work any more, never mind’.

This isn’t your paying job, as soon as it stops being fun just stop. :pensive_face:

1 Like

It’s all good. I’ve also pondered whether this is the right solution, or if I should revisit the WebUI extension I had for this purpose.

My main problem isn’t whether it’s fun or not, since all of this is interesting to me, it’s deciding what captures my attention the most. Recently, I’ve been pondering a small desktop CNC sand zen garden using NEMA 11 motors with an automatic tool changer for things like a rake and things of varying pointiness. Then I’ve got this coaxial stepper motor I’ve been meaning to play with. All while I should be organizing my workshop and finishing the frame for my pen plotter. :laughing:

2 Likes

there’s the sticking point - “should be” according to whom?

Hey look I did a thing on my should do list. Although, I still need to finish it but we’ll wait for it to be consistently warm.

8 Likes

closing old topic to help fight spambots