[Solved] How to manually set current Z position?
March 25, 2018 07:51AM
Printing has been aborted in the middle of pretty long run and it doesn't make much sense to start all over, so here's what I'm trying to do:
1) Edit g-code by removing all layers already printed
2) adjust starting conditions to exclude Z homing and telling printer it's already at required Z position
3) start printing from current height

The problem is when I supply new Z position via G92 printer doesn't seem to accept it. G92 for X and Y work fine but only after homing and that cannot be done for Z. Is there any way to override it?

GCode in question:

M107
M190 S55 ; set bed temperature
M104 S195 ; set temperature
G28 X ; home X and Y axes
G28 Y

M109 S195 ; wait for temperature to be reached
G21 ; set units to millimeters
G90 ; use absolute coordinates
M82 ; use absolute distances for extrusion
G1 Z0 F3600 ; return to original position because Marlin rises extruder by 2 mm before homing axises

G92 Z133.400 ; Here I want printer to think it's already at required height

G92 E0  ; Actual printing starts here
G1 Z133.400 F4800.000
G1 E4.84405 F3600.00000
G92 E0
G1 X50.688 Y160.833 F4800.000
G1 E2.00000 F3600.00000
G1 X50.577 Y161.329 E2.02654 F3600.000


Marlin 1.1.6, Inductive sensor on Z axis

Any ideas before I try to physically trigger Z sensor right on start?

Edited 2 time(s). Last edit at 03/25/2018 12:01PM by the.Legend.
Re: How to manually set current Z position?
March 25, 2018 11:53AM
Found the answer: In newer versions of Marlin this behaviour was deprecated, but could be enabled this way:
in Marlin sources in file Configuration_adv.h uncomment this parameter:
#define NO_WORKSPACE_OFFSETS
Sorry, only registered users may post in this forum.

Click here to login