The M17 macro set the variable #3 to either 0.0 or 0.5.
I can't figure out how to use it in GCode formula.
- Code: Select all
...
#3 = 0.0
M17
...
G00 Z80.000
G00 X10.000 Y10.000
G01 X10.000 Y10.000 Z[8.000+#3] (brackets are not interpretable(they, and everything in it, appear in red in the GCode viewer))
G01 X10.000 Y10.000 Z[#3+8.000] (same as above)
G01 X10.000 Y10.000 Z#3+8.000 (will ignore the +8.000)
G01 X10.000 Y10.000 Z8.000+#3 (will ignore the variable)
...
I fear I have to recalculate the Z value for each and every line.
Something like:
- Code: Select all
#103 = Zcoord + #3
G01 X10.000 Y10.000 Z#103
Is that right?
Cheers