Peter van der Walt for the test fire macro button I have a question

+Peter van der Walt for the test fire macro button I have a question about relative movement.

if I use G1 Z1 F600 S0.2 then it is an absolute command that moves the Z to position 1 and fires the laser for that duration.

now if I press it again it does not do anything ( makes sense because the machine thinks Z is already at Z1 location )

to fix this I created a 2nd macro button G1 Z0 F600 S0.2 and this moves the Z back to Z0 and fires the laser.

I can toggle between both buttons to keep test firing lol. This works fine of course.

I am still learning G-codes so bear with me.

is it possible in the Macro field to do a G91 G1 Z1 F600 S0.2 ? This way it’s a relative command and I can just use a single test-fire button ? I mean is it ok to put all of that in 1 line like that ? or do I need to format that differently ?

Awesome ! Thank you for the Advice Peter !

I was wondering what was going on with the testfire button from the wiki. I will have to do this too :slight_smile:

I did this & it works: G1 Z1 F600 S0.2 \n G0 Z0