Just had a thought/question (here at work, so I can’t test it – and not sure how I would test it).
If you create settings in the slicing program (Cura in this case) and you set a Z-axis offset, then upload the code/object to the printer (a Prusa i3 Anet A8 in this case), and the printer has its own Z-axis offset, what happens?
Does the gCode override the printer’s settings?
Does the printer override the gCode’s settings?
Do the two settings interact? Printer -0.5mm + gCode -0.6mm = a final -1.1mm?
If you’re using G92 Z 0 for example, tells the firmware to reset the current position to 0 without moving the tool head for example, but it really depends on the gcode you are using…
Typically, you overwrite the printers configuration…
I emailed the start code to myself last night so I could do research over lunch, so here it is, below. Basically, I’m in pursuit of that perfect first layer and I want to move the extruder closer to the bed via the z-offset. Gave it a quick try last night, but I must have used the wrong code, or put it in the wrong place, because the printer started trying to print in midair.
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F9000 ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F9000
M117 Printing…
I had some headaches with setting the offset when I first got the printer. Turned out that the proximity sensor was faulty. Around then, I discovered the Gcode could handle the offset and it seemed easier at the time.
Now that I’ve done a few prints and reverted back to a regular z-stop, maybe I SHOULD try and set the offset on the printer again.
I have no idea what firmware I’m using – whatever came with the printer. Plus, I’m having trouble getting it to connect to the computer via USB, so I can’t check that way.
Hoping to resolve the sensor issue soon, then I can shoot for auto-bed-leveling!
Thanks for the suggestions. Will give it a shot as soon as I have time.