Welcome! Log In Create A New Profile

Advanced

Placehold variables for Custom Gcode

Posted by EL34 
Placehold variables for Custom Gcode
March 22, 2013 03:58PM
I want to move the extruder up and away a certain distance above the finished print.

Adding a fixed value custom End G-code command like G0 Z100 will not work if the printed object is 150mm tall
I see in slic3r 098 that you can use placeholder variables but I can't find any info about this

Example:
I need to add 100mm to where ever the extruder is currently at when the print finishes

So if the extruder finished at Z125, I want the Z axis to move to Z125 + 100 = Z225

Any help is appreciated
thanks
Doug


My projects are listed here - [www.el34world.com]
Attachments:
open | download - slic3r.gif (35.5 KB)
Re: Placehold variables for Custom Gcode
March 22, 2013 08:31PM
You have a couple of options.

G92 Z0.
G1 Z125.

The first line resets z axis to zero.
The second line is your move.

G91 G1 Z125.

G91 switches to incimental mode. Then your move.
Re: Placehold variables for Custom Gcode
March 23, 2013 05:36AM
G92 Z0
G1 Z125

This method will work
Thanks for the info


My projects are listed here - [www.el34world.com]
Re: Placehold variables for Custom Gcode
March 25, 2013 01:17PM
Be aware - G92 sets the Z axis origin to its current location, so a G1 Z125 will raise you 125 above that - not 125 above the bed.

I have postfix code to lift 10 millimeters and use the G91 approach.
Re: Placehold variables for Custom Gcode
March 25, 2013 01:25PM
Thanks for the tip

I'll experiment with G91


My projects are listed here - [www.el34world.com]
Sorry, only registered users may post in this forum.

Click here to login