@droftarts said in Issue converting bed.g to use Conditional gcode:
@tekkydave I've just realised the example code is for a delta printer, which doesn't use M671 (no leadscrews) to limit correction, so hasn't been considered in the description or writing of the code. I've updated the page to reflect this.
NOTE: If you use this method to iterate the levelling of a bed/gantry mounted on leadscrews (eg Cartesian, CoreXY etc), the maximum deviation corrected is still limited by the S parameter of M671 (default 1mm). If the maximum deviation exceeds this limit, the script will exit with "Error: Some computed corrections exceed configured limit of 1.00mm", as it would if G30 bed levelling was called manually.
Ian
Thanks 🙂 I realised the code was for a delta but adapted it to the commands I normally used in bed.g. I didn't know delta's don't use M671 so 😝 to me for using it in the wrong context. I was keen to have a play with conditional g-code.
Dave