I got it working now, i read on the gcode webpage that you can't have multiple analog sensors? Im assuming it has to do with the filtering.
This is what the page stated:
*"Restrictions on defining more than one Z probe (K parameter) as at RRF 3.01:
G29 and G30 commands always used probe 0 and there is no facility to select a different probe
Only one Z probe can be type 1,2,3,5 or 9. But you can have multiple type 8 Z probes.
All Z probes use the same deployprobe.g and retractprobe.g files"*
I changed it to the following in my config.g:
; Z-Probe
M558 K0 P3 C"io6.in" H5 F120 T6000 ; set Z probe type to switch and the dive height + speeds
G31 K0 P600 X-103.6 Y0 Z0 ; set Z probe trigger value, offset and trigger height
M558 K1 P8 C"io7.in" H5 F120 T6000 ; set Z probe type to switch and the dive height + speeds
G31 K1 P600 X0 Y0 Z0 ; set Z probe trigger value, offset and trigger height
I'd still prefer if there was a different way to do it but for now it works.
I do however have another question. Like i said my tool 1 moves up and down. Now when i change tools i want my bed to move down before my tool goes down because otherwise it will crash into the bed. The problem is is that i use a G10 command to set the tool offset which is measured with the FSR. This offset only applies after running all the tool change scripts. So from what i can tell there is no way to move the bed first because it will only run after the tool change scripts which would the command to move the U axis.
Currently my code for measuring and setting the offset:
M561 ; clear any bed transform
M98 P"homeu.g" ; Home U axis
G90
T0 P0 ; Select tool 0
G1 X120 Y44
G91
G30 K0 Z-9999 ; Probe bed with tool 0 and set Z=0
G90
T1 P0
G1 X120 Y44 Z7.5 U-7.5 F800; ; Move the bed 20mm, and the U axis 15mm down
G91
G38.2 Z0 P1
M400
G10 L1 P1 Z{move.axes[2].machinePosition}
M500 P10
M400
G91
G1 Z+5
G90
M400
M117 "Z offset for tool 1 is set and saved"
T0
Maybe it is a possibility to set the U offset too so it changes it together?
I'd like any input 🙂