I'm trying to track down the issue, by calling G28, G32, M40[12] etc in all different combinations, and it seems there is something wrong with M40[12].
The probe is not attached, and I call M401. It picks up the probe, Z-Probe shows 0 in the webfrontend, but still the scripts spits out:
M401
Error probe not attached - aborting
after it has picked up the probe, and z-Probe clearly IS ZERO.
This is my deployprobe.g
; The deploy command for Z when using a dockable probe
M564 H0 S0
if sensors.probes[0].value[0] != 0
var originX = {move.axes[0].userPosition} ; Store the X position before grabbing the probe.
var originY = {move.axes[1].userPosition} ; Store the Y position before grabbing the probe.
G1 X6.500 Y193.000 F999999 ; Move tool in front of dock
G1 X6.500 Y243.000 F999999 ; Move tool in position where probe is mounted
G1 X6.500 Y193.000 F999999 ; Move tool in front of dock
if var.originX > 6.500 || var.originY > 193.000 ; Move the toolhead back to the position we came from
G1 X{var.originX} Y{var.originY} F999999
M400
if sensors.probes[0].value[0] != 0
abort "Error probe not attached - aborting"
Do I maybe need some delay in the script?
EDIT: If I remove these the last two lines from the script (the ones checking for senors.probe.value unequal 0, then everything works.