Page 1 of 1

R less than z in cycle in xyplane

Posted: Sat Jul 23, 2016 9:30 pm
by electronrancher
Hi,

Getting this error in 0.77 and also 0.8.7, I don't quite know what it relates to. The gcode going in to autoleveller seems to be accepted by Mach3, but after leveling it fails to load with this error.

Other than this, great work! This tool has really improved my PCB milling.

The line in question is
G82 X-88.9 Y31.75 Z[#100 = -0.2] F150 R3 P01

Re: R less than z in cycle in xyplane

Posted: Sun Jul 24, 2016 3:08 pm
by daedelus
This is an interesting error. The R in a G82 line means retract, so in your case, after drilling and a short pause, the tool bit will retract to +3mm.

It looks like Mach3 cannot tell the difference between the Z value being given a real number such as Z3.56 and a calculated value as in your case Z[#100 = -0.2] when there is a retract word in the gcode line.

In this case, you could use a 2-stage levelling approach (i.e. use a probe log, RPF) as this will eliminate the calculated Z's and replace them with real numbers and you should be clear of the error.

There is a brief video on how to do this in AutolevellerAE https://youtu.be/ZbfS92Zvzz8 but please feel free to ask more question if this does not make sense.