grblHAL / STM32F1xx

grblHAL driver for ST STM32F1xx (Redpill, Bluepill)
Other
38 stars 27 forks source link

grblHAL probing with BSMCE04 (STM32F1) #53

Open PolyEng opened 1 month ago

PolyEng commented 1 month ago

hi , i'm having this issue w probing on this hw :BSMCE04 (stm32 mounted is genuine , at least it seems so no clones)

essentially probe triggers correctly i can see it in the GUI of IO sender and on the console of IO sender but when i issue for example a G38.2 machine doesnt move and reports probe position where it is (probe IS NOT triggered ) checked with oscilloscope for noise .. everything is fine. console output says "ok" and cycle continues

if i manually TRIGGER the probe and issue a G38.2 the cycle errors out (as it should) since probe is already trggered before starting the probing operation.

so probe is fine electrically and switches correctly but fw has some bug i think?

(before you blame my wiring or "noise", the probe is isolated through opto and the same hw setup of the probe is working correctly if i swap the controller for a PI PICO)

thanks in advance for whoever will look into it

i'll include a snippet of gcode and relative output from console in verbose mode


G91F2
G0Y5
G0X-6
G0Z-3
G38.3F2X10

starting from this coordinates i have to do Y+5   X-6 and Z-3
**<Idle|MPos:-3.500,23.508,9.996|Bf:100,1024|FS:0,0|Pn:HS|WCO:-3.500,23.508,9.996|WCS:G54|A:|Sc:|MPG:0|H:0|T:0|TLR:0|FW:grblHAL>**
Probing...
G91F2
ok
PM:ok
G53G0Y28.508
ok
PM:ok
G53G0X-9.5
ok
<Run|MPos:-3.500,23.528,9.996|Bf:98,1024|FS:90,0|Pn:HS|WCO:-3.500,23.508,9.996|WCS:G54|A:|Sc:|MPG:0|H:0|T:0|TLR:0|FW:grblHAL>
PM:ok
G53G0Z6.996
ok
PM:ok
G38.3F2X10
**<Run|MPos:-9.496,28.508,6.996|Bf:99,1024|FS:0,0|Pn:HSP>**
[PRB:-9.500,28.508,6.996:1]
ok
PM:ok

machine does all the G0 moves and arrives to destination... now G38.3F2X10 i should move X+10 till i find the probe .. but the machine doesnt move because **Pn:HSP **Probe is triggered, problem is probe isnt triggered **```
terjeio commented 1 month ago

When I test here probing works as it should (tested by triggering the input manually). Please enable Run substatus in General > Status report options and post a complete log of a probing sequence.

PolyEng commented 1 month ago

When I test here probing works as it should (tested by triggering the input manually). Please enable Run substatus in General > Status report options and post a complete log of a probing sequence.

rn i have changed the board , it will take some time for me to swap again the board , i'll keep you updated , thanks in advance

CBR900cc commented 1 day ago

hello @PolyEng I've some issue with probe pin, in my case if I use z-limit pin with inductive sensor, all working fine, but if I connect inductive sensor to pb4 (probe pin) nothing work, board not read any signal of triggered or not... can you share you pinout connections/photos?

terjeio commented 21 hours ago

@CBR900cc If you short the probe input to ground does it change the probe state?