So, I like to take off my glass build plate from my printer bed because I don't like to put any force on the bed bearings but this presents an issue. I have an inductive bed leveling probe and each time I remove the plate the Z offset seems to be off on the next print.
Instead of re-leveling my bed and setting the Z offset by hand, I thought of adding starting G-code to do that for me but I've hit a snag. I have an Ender 3 and use Slic3r.
The sequence of events I would like is as follows:
G28- home axis
G0 X150 Y130 Z5- Moves to X150 Y130 Z5
G30 S1- Performs a bed leveling probe at the current point. This raises the head 10 mm and stops when the probe is triggered. The current Z height this stops at is what I want for the next command.
M851 Z[insert Z height from prev command here]
I know Slic3r has these placeholder values for some commands like
M109 S[temperature_0] in the square brackets. Is there one for the current Z height?