My only problem is, this does not work.
I configured my probes in config.g:
; Configure Inputs
; E0 - ToolHead-Offset
M581 T2 P"!e0stop" C0 ; Monitor endstop E0 for a rising edge Signal (NO - normally open Switch, active high), calling macro-file trigger2.g at any condition
; Probes
M558 K0 P5 C"!zprobe.in" H5 R0.000 A30 B0 S0.01 F200 T2000 ; Setup the Z-Probe (switch, active high)
M558 K1 P5 C"!e0stop" ; Setup the Calibration-Probe (switch, active high)
and touching the probe creates the trigger as planned. But when running the following code in bed.g, the probe will not stop the motion or trigger like normal, until its already too late.
M98 P"position_calibration_nozzle.g" ; Move to BedSensor
M208 Z-3 S1 ; Enable Movement below the PrintBed (override Z-min)
G1 Z5 F200 ; Move to defined Z-Position
M585 P1 L0 S1 F50 Z-5.15 ; Probe BedSensor (Offset to Bed: 0.15mm)
M400 ; Make sure everything has stopped
G4 P1000 ; Wait a Second
m81
G10 P0 ; Show Offsets
M114 ; Show Position