I’m using piezo sensors under the printbed like Bambulab does on X1 and P1. The sensor triggers when the printbed touches the nozzle. It works just fine for z homing, but on bed meshing the piezos need to be ‘refreshed’ from time to time. Bambulab does that by shaking the bed quickly up/down every 7th probe point.
Is there a way to implement a macro or gcode in bed mesh that will be executed every n-th probe point?
How it should work:
So, before the bed mesh the printer shakes the bed to reset the piezos and starts bed meshing with the first 7 probe points like normal. Before it probes the next 7 points an external macro/gcode is executed (for shaking the bed), then resumes with the next 7 probe points.
7 is just a random number here, user should be able to choose other numbers.
Thank you