Probing Macro
-
Hello All.
For our Giant Delta 3D printer project, We are trying to calibrate the bed.
in order to measure and set the parameters, I wrote a Macro.
The Macro:;https://duet3d.dozuki.com/Wiki/Calibrating_a_delta_printer G28 ; Home all G90 ; absolute positioning G0 X0 Y0 F2000 ; 0. Start point. G1 Z35 ; M561 ; Cancel any existing bed compensation by sending M561 M208 S1 Z-30 ;Send M208 S1 Z-3 to temporarily allow Z moves down to Z=-30mm. This is to ensure that you can lower the nozzle all the way to the bed in step 5. ; Command the print head to the XY coordinates you want to probe G30 S-1 ; find the difference G92 Z0 ; Set the new zero. G1 Z35 ; G0 X0 Y500 ; 1. point. G30 S-1 ; find the difference G1 Z35 ; G0 X433.01 Y250 ;2. point. G30 S-1 ; find the difference G1 Z35 ; G0 X433.01 Y-250 ;3. point. G30 S-1 ; find the difference G1 Z35 ; G0 X0 Y-500 ;4. point. G30 S-1 ; find the difference Z35 ; G0 X-433.01 Y-250 ;5. point. G30 S-1 ; find the difference G1 Z35 ; G0 X-433.01 Y250 ;6. point. G30 S-1 ; find the difference G1 Z35 ; G1 X0 Y0 ; 0. Finish point.
On the first trial, I get successful output. I believe these outputs are the Bed.g H values going to be right?
According to the GCode This is the output: resulted
11/12/2020, 6:01:41 PM Stopped at height 32.718 mm 11/12/2020, 6:01:16 PM Stopped at height 32.839 mm 11/12/2020, 6:00:52 PM Stopped at height 31.475 mm 11/12/2020, 6:00:27 PM Stopped at height 29.794 mm 11/12/2020, 6:00:01 PM Stopped at height 30.364 mm 11/12/2020, 5:59:35 PM Stopped at height 30.809 mm 11/12/2020, 5:59:09 PM M98 P"0:/macros/ProbingMakro.g" Stopped at height 0.495 mm
But Later test start failing. After 2. sampling axis moves behaves strangely. IT is going the next line before completing the current job.
Questions:- What is the problem in the code or somehere?
- How do I use this measurement values?
Thanks.