Bed Leveling compensates to 1.5~3.5 mm below printing surface

Hi,
I just some upgrades to my delta printer, newest firmware, cooling fan and indirect laser filament sensor.
After updates head rams hard into printing bed. Apparently it though that surface is way below the actual one. So I thought it had to do something with filament sensor so I have disconnected and disabled it in cfg.
That have not changed anything, so I have removed fan too well who knows...
Still same thing. After examining I figured that it always compensates to 1.5~3.5 mm below the surface after restart. It seems that it triggers on right time, exactly when it bumps on surface.
Things get stranger if I don't restart the printer.
I have no idea why.configoverride.g
; configoverride.g file generated in response to M500 at 20190514 10:48 ; This is a systemgenerated file  do not edit ; Delta parameters M665 L400.320 R164.355 H518.72 B165.0 X0.000 Y0.000 Z0.000 M666 X0.017 Y0.088 Z0.071 A0.00 B0.00 ; Heater model parameters M307 H0 A191.7 C568.8 D3.2 S1.00 V24.5 B0 M307 H1 A944.2 C325.2 D6.4 S1.00 V24.0 B0 M307 H2 A340.0 C140.0 D5.5 S1.00 V0.0 B0 M307 H3 A340.0 C140.0 D5.5 S1.00 V0.0 B0 M307 H4 A340.0 C140.0 D5.5 S1.00 V0.0 B0 M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0 M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0 M307 H7 A340.0 C140.0 D5.5 S1.00 V0.0 B0 G10 L2 P1 X0.00 Y0.00 Z0.00 G10 L2 P2 X0.00 Y0.00 Z0.00 G10 L2 P3 X0.00 Y0.00 Z0.00 G10 L2 P4 X0.00 Y0.00 Z0.00 G10 L2 P5 X0.00 Y0.00 Z0.00 G10 L2 P6 X0.00 Y0.00 Z0.00 G10 L2 P7 X0.00 Y0.00 Z0.00 G10 L2 P8 X0.00 Y0.00 Z0.00 G10 L2 P9 X0.00 Y0.00 Z0.00
bed.g
; called to perform automatic delta calibration via G32 ; generated by RepRapFirmware Configuration Tool v2 on Tue Feb 19 2019 21:54:36 GMT0500 (Eastern Standard Time) M561 ; clear any bed transform G28 ; home all towers G30 P0 X0.00 Y160.00 Z99999 H0 G30 P1 X80.00 Y138.56 Z99999 H0 G30 P2 X138.56 Y80.00 Z99999 H0 G30 P3 X160.00 Y0.00 Z99999 H0 G30 P4 X138.56 Y80.00 Z99999 H0 G30 P5 X80.00 Y138.56 Z99999 H0 G30 P6 X0.00 Y160.00 Z99999 H0 G30 P7 X80.00 Y138.56 Z99999 H0 G30 P8 X138.56 Y80.00 Z99999 H0 G30 P9 X160.00 Y0.00 Z99999 H0 G30 P10 X138.56 Y80.00 Z99999 H0 G30 P11 X80.00 Y138.56 Z99999 H0 G30 P12 X0.00 Y80.00 Z99999 H0 G30 P13 X69.28 Y40.00 Z99999 H0 G30 P14 X69.28 Y40.00 Z99999 H0 G30 P15 X0 Y0 Z99999 S7
homedelta.g
G91 ; relative positioning G1 S1 X650 Y650 Z650 F3800 ; move all towers to the high end stopping at the endstops (first pass) G1 X5 Y5 Z5 F1800 S2 ; go down a few mm G1 S1 X10 Y10 Z10 F360 ; move all towers up once more (second pass) G1 Z5 F6000 ; move down a few mm so that the nozzle can be centred G90 ; absolute positioning G1 X0 Y0 F6000 ; move X+Y to the centre
config.g
; ZProbe M558 P8 R0.4 F1200 H5 T6000 ; Set Z probe type to effector and the dive height + speeds G31 P100 X0 Y0 Z0.15 ; Set Z probe trigger value, offset and trigger height M672 S105:80:175 ; Set Z probe sensitivity to 90 M557 R165 S20 ; Define mesh grid"
Did I forget something?

I was trouble shooting a similar issue although on a cartesian printer. Turned out to be the trigger height set incorrectly (ve instead of +ve).
G31 in config.g. Should this be a positive value ? Also, M666 in bed.cfg ?

@milangupta1 Also, where is G92 in homedelta.g ? Shouldn't that be set as the new x and y home positions before you move back to absolute positioning ..

after your changes did you recalibrate your delta and save the new values in the M665 and M666 command?

I haven't done any new changes as everything was working perfectly. Will have to go though that later today I guess.

@worekarolis said in Bed Leveling compensates to 1.5~3.5 mm below printing surface:
I haven't done any new changes as everything was working perfectly
you wrote that you did upgrades to your delta.

@veti
I mean I have not done changes to configuration or structure. Just added a fan and filament sensor 
This post is deleted! 
There is G90 in there so no need for G92 as much as I understand

as milangupta1 said. your bed config should look something like this (adjust for your bed)
and the M665 and M666 should be in the config.g; bed.g
; called to perform automatic delta calibration via G32
;
; generated by RepRapFirmware Configuration Tool v2.0.0 on Thu Aug 29 2019 14:53:59 GMT+0200 (MitteleuropĂ¤ische Sommerzeit)
M561 ; clear any bed transform
; Probe the bed at 12 peripheral and 0 halfway points, and perform 6factor auto compensation
; Before running this, you should have set up your Zprobe trigger height to suit your build, in the G31 command in config.g.
G30 P0 X0 Y84.9 H0 Z99999
G30 P1 X42.45 Y73.53 H0 Z99999
G30 P2 X73.53 Y42.45 H0 Z99999
G30 P3 X84.9 Y0 H0 Z99999
G30 P4 X73.53 Y42.45 H0 Z99999
G30 P5 X42.45 Y73.53 H0 Z99999
G30 P6 X0 Y84.9 H0 Z99999
G30 P7 X42.45 Y73.53 H0 Z99999
G30 P8 X73.53 Y42.45 H0 Z99999
G30 P9 X84.9 Y0 H0 Z99999
G30 P10 X73.53 Y42.45 H0 Z99999
G30 P11 X42.45 Y73.53 H0 Z99999
G30 P12 X0 Y0 H0 Z99999 S6
; Use S1 for measurements only, without calculations. Use S4 for endstop heights and Zheight only. Use S6 for full 6 factors
; If your Z probe has significantly different trigger heights depending on XY position, adjust the H parameters in the G30 commands accordingly. The value of each H parameter should be (trigger height at that XY position)  (trigger height at centre of bed) 
sorry, I've labeled this incorrectly. M665 and M666 are in the config overide. Correcting post.

are you using mesh bed compensation?
i.e. loading the heightmap somewhere 
I've used it, but now its disabled.


@worekarolis
yes. loading it will change the z=0 based on the values in the heightmap. 
@veti
Removing it haven't changed behavior 
Hi,
The trigger height setting for your Zprobe might be wrong.
The H parameter to M665 might be wrong.
Either one can result in Z=0 not being the surface of the bed.
Frederick

After updating to 2.04RC1 (20190714b1) issue is gone.
Many thanks for your help!