vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

Customizable button. How to update variable value? #1874

Open MARIOBASZ opened 5 months ago

MARIOBASZ commented 5 months ago

I want to perform the z probe: 1- go to the probe location in G53 2- Z probe at speed 1200 3- raise 3 mm 4- Z probe at speed 200 Up to here, ok. The problem is getting to the real value of the Z probe (I can trick the machine by making it go up 0.29 mm): If I send the command G53 G0 Z [prbz] it goes to the value saved at the beginning, which has not been updated. Is there a way to update this value?

JipeB commented 3 months ago

Sorry for the late response. If I understood the question correctly, it is about updating Z0 taking into account the height of the sensor/touch plate. In this case you must use G10 L20 P1Z[probe]. P1 is for workspace G54; for G55 and following you must use P2..P6. J.P.