How do run config/bed.g from web UI?
-
When I click on the mesh compensation button in PanelDue it runs my script in sys/bed.g which heats the bed and then run the mesh measurement (good). However, when I click the 'run bed compensation' command in the Web UI it doesn't hit the bed and just does the mesh measurement.
Is this intentional? Any simple way to run bed.g from the web UI?
(Board: Duet WiFi 1.02 or later, Firmware: RepRapFirmware for Duet 2 , WiFi/Ethernet 2.04 2019-11-01b1, Duet WiFi Server Version: 1.23)
-
Which DWC version?
There should be a few options in the drop down menu. It should be Auto Bed Compensation that runs G32.
https://duet3d.dozuki.com/Wiki/Duet_Web_Control_Manual#Section_Probing_the_Bed
Alternatively, you could send G32 from the gcode console directly.
-
It's says Duet Web Control 2.0.4. The menu looks like this:
I pressed Run Mesh Compensation (G29). Should I use True Bed Leveling (G32) instead?
-
Yes, G32 is what runs bed.g file. G29 measures mesh, saves it to SD card and apply mesh bed compensation. G29 have nothing to do with bed.g
-
Thanks, I will give it a try.
BTW, calling it G32 True Bed Leveling is confusing IMO. For me 'leveling' implies actual physical adjustment of the tilt, manual or via multiple Z stepper.
-
@zapta said in How do run config/bed.g from web UI?:
Thanks, I will give it a try.
BTW, calling it G32 True Bed Leveling is confusing IMO. For me 'leveling' implies actual physical adjustment of the tilt, manual or via multiple Z stepper.
And that is exactly what G32 (bed.g) does, if you configure bed.g correctly of course.
-
@aidar said in How do run config/bed.g from web UI?:
And that is exactly what G32 (bed.g) does, if you configure bed.g correctly of course.
Are you sure? Reading the G32 documentation suggest that its intention is to probe the bed and compute its surface such that the head's vertical position can be track it when printing.
https://duet3d.dozuki.com/Wiki/Gcode#Section_G32_Probe_Z_and_calculate_Z_plane
BTW, I believe that 'Z surface' is more accurate in this context than 'Z plane' since it's not flat in the general case.
-
@zapta The function of G32 as you describe has been deprecated. Rather than do a 5 point sampling of the bed and generating a plane it's not recommended to use G29, either with a sparse grid to duplicate the behaviour of the old way of doing it, or with a detailed grid to get a high res height map of the surface for active compensation.
G32 doesn't really have a defined behaviour though. All it does is run the macro bed.g. So whatever you want to do in bed.g is what G32 will do. One option is to use multiple independent z motors to adjust the bed so that it is "Truly level", as described here: https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors