Hi, my leveling isn't so in tune so when I start a print I like to use baby stepping, pausing and restarting and such to the the first layer right. but when I home Z after canceling a print the z offset increases by a millimeter or so. For example say my Z offset was Z-1 and my H parameter in M558 was 3, after homing I should see Z at position 4 in the machine status box. I do see this after a reboot/reset, but if I home after canceling a print that number increases to something like 5 or 6. the only way to get it bak to normal is to restart the board. If I try printing with this new offset the head crashes into the bed. also if I run mesh leveling in this state it will show the bed that much lower even though its homed first in the center of the bed.
https://ibb.co/dzNGoV
Side note may be related, I can't seem to get mesh leveling to work. Its either over compensating, making some points higher or not working at all and its just my bed.
0_1541706170793_config.g
; Configuration file for Duet WiFi (firmware version 1.17 to 1.19)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Sun Dec 17 2017 13:32:42 GMT-0800 (PST)
; General preferences
M111 S0 ; Debugging off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P1 ; Set firmware compatibility to look like RepRapFirmare
M667 S1 ; Select CoreXY mode
M208 X0 Y0 Z-2.0 S1 ; Set axis minima
M208 X360 Y345 Z345 S0 ; Set axis maxima
; Endstops
M574 Z0 S2 ; Set active low endstops
M574 X1 Y2 ; Set active high endstops
M558 P5 I1 T6000 H3 F6000; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
G31 X14 Y2 Z1.65 ; Set Z probe trigger value, offset and trigger height
M557 X40:315 Y70:320 S40 ; probe from X=40 to 300, Y=50 to 320mm with a mesh spacing of 50mm
G29 S1
; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes backwards
M350 X32 Y32 Z32 E32 I1 ; Configure microstepping with interpolation
;
M92 X200 Y200 Z800 E830 ; Set steps per mm
;
; Acceleration
M566 X600 Y600 Z50 E600 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z2400 E10000 ; Set maximum speeds (mm/min)
M201 X2000 Y2000 Z100 E4000 ; Set accelerations (mm/s^2)
M572 D0 S0.15
M906 X800 Y800 Z800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Heaters
M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C
M307 H1 A542.0 C224.8 D5.3 B0
; Tools
M563 P0 D0 H1 ; Define tool 0
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
; Network
M550 PD-bot ; Set machine name
M587 S"TP-Link_B3F2" P"********"
M587 S"Linksys01868" P"********"
M552 S1 ; Enable network
; M587 S"Belkin.4832" P"********" ; Configure access point. You can delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet
; Fans
M106 P0 S0 I0 F250 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
; Custom settings
; Comment out the default M558 and replace it with this
;M558 P5 I1 T1000 H7
; Miscellaneous
T0 ; Select first tool
; M671 X-40:40:315:315 Y70:70:320:320 ; Z level screws are at (40,70), (40,320) and (315,70)
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Sun Dec 17 2017 13:32:42 GMT-0800 (PST)
G91 ; relative positioning
G1 Z1 F6000 S2 ; lift Z relative to currnt position
G90 ; back to absolute mode
G1 X202 Y200 F6000 ; put head over the centre of the bed, or wherever you want to probe
G30 ;lower head, stop when probe triggered and set Z to trigger height
;G91
;G1 S1 Z-270 F6000 ; move Z down until the switch triggers
;G91 ; relative positioning
;G1 Z1 F6000 ; lift Z relative to current position
;G90 ; back to absolute mode
;G1 S1 Z -10 F6000
;G92 Z0.3 ; set Z position to trigger height
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z7 F100 ; lift Z relative to current position
;G90 ; absolute positioning