Get current layer into custom gcode?
 
Notifications
Clear all

Get current layer into custom gcode?  

  RSS
xbk
 xbk
(@xbk)
New Member
Get current layer into custom gcode?

I want to add custom gcode with always the same script.

I added a custom gcode on a layer, so how can I insert the current Z layer into the custom gcode?

G1 F300 Z[current layer] ; move back down to resume height

 

Posted : 25/04/2020 7:57 pm
Area51
(@area51)
Member
RE: Get current layer into custom gcode?

To move to max printing height and back the current layer z:

G1 Z[max_print_height] F300 ; Move to max Z height
G1 Z{layer_z+z_offset} ; Move back to current printing Z height

Have a look at my models on Printables.com 😉

Posted : 26/04/2020 9:05 am
Share: